diff options
Diffstat (limited to 'modules/tools/nixvim/plugins/comment.nix')
| -rw-r--r-- | modules/tools/nixvim/plugins/comment.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/tools/nixvim/plugins/comment.nix b/modules/tools/nixvim/plugins/comment.nix index aa22577..905068f 100644 --- a/modules/tools/nixvim/plugins/comment.nix +++ b/modules/tools/nixvim/plugins/comment.nix @@ -4,5 +4,20 @@ { config.programs.nixvim.plugins.comment = lib.mkIf config.tools.nixvim.enable { enable = true; + settings = { + toggler = { + line = "gcc"; # toggle line comment + block = "gbc"; # toggle block comment + }; + opleader = { + line = "gc"; # line comment operator (gc + motion) + block = "gb"; # block comment operator (gb + motion) + }; + extra = { + above = "gcO"; # add comment line above + below = "gco"; # add comment line below + eol = "gcA"; # add comment at end of line + }; + }; }; } |
