mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 06:55:58 +01:00
24 lines
402 B
Nix
24 lines
402 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
with builtins; let
|
||
|
cfg = config.vim.comments.kommentary;
|
||
|
in {
|
||
|
options.vim.comments.kommentary = {
|
||
|
enable = mkEnableOption "kommentary";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
vim.startPlugins = [
|
||
|
"kommentary"
|
||
|
];
|
||
|
|
||
|
vim.luaConfigRC.kommentary = nvim.dag.entryAnywhere ''
|
||
|
require('kommentary.config').use_extended_mappings()
|
||
|
'';
|
||
|
};
|
||
|
}
|