diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-15 15:10:52 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-15 15:10:52 +0530 |
| commit | a2f3c4d73c084e03393c0e4a7c8906283f1d194a (patch) | |
| tree | f9454f0f1d330004a2f271e55fe9d596d28562c0 | |
| parent | c426c372cce66849b959df9ce5ac3b0808880b31 (diff) | |
| download | home-manager-config-a2f3c4d73c084e03393c0e4a7c8906283f1d194a.tar.gz home-manager-config-a2f3c4d73c084e03393c0e4a7c8906283f1d194a.zip | |
added comments to nixvim comments plugin
| -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 + }; + }; }; } |
