mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 08:36:46 +00:00
25 lines
410 B
Nix
25 lines
410 B
Nix
|
{
|
||
|
pkgs,
|
||
|
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()
|
||
|
'';
|
||
|
};
|
||
|
}
|