1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-28 02:39:49 +01:00
neovim-flake/modules/comments/kommentary.nix
2023-04-02 19:59:08 +03:00

23 lines
409 B
Nix

{
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.comments.kommentary;
in {
options.vim.comments.kommentary = {
enable = mkEnableOption "Enable kommentary";
};
config = mkIf cfg.enable {
vim.startPlugins = [
"kommentary"
];
vim.luaConfigRC.kommentary = nvim.dag.entryAnywhere ''
require('kommentary.config').use_extended_mappings()
'';
};
}