diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-19 01:40:50 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-19 01:40:50 +0530 |
| commit | baae94abb6a9a03914216f0f373b7b0f6b0207bd (patch) | |
| tree | 34f0b938f0b34b0c3723ed929246f71f9a2d396e /modules/development/nixvim/plugins/comment/default.nix | |
| parent | 6b0161b2639bb49e270754e90f4f8a47311c5198 (diff) | |
| download | home-manager-config-baae94abb6a9a03914216f0f373b7b0f6b0207bd.tar.gz home-manager-config-baae94abb6a9a03914216f0f373b7b0f6b0207bd.zip | |
chore: removed all raw string configurations options in favor of files
Moved all configurations which were previously raw strings chunks, for
options that the home-manager options didn't provide, into files for
that specific configuration and reading there contents instead (with
string replacement for passing information from the rest of the
configuration).
Diffstat (limited to 'modules/development/nixvim/plugins/comment/default.nix')
| -rw-r--r-- | modules/development/nixvim/plugins/comment/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/development/nixvim/plugins/comment/default.nix b/modules/development/nixvim/plugins/comment/default.nix new file mode 100644 index 0000000..8c69218 --- /dev/null +++ b/modules/development/nixvim/plugins/comment/default.nix @@ -0,0 +1,22 @@ +# Comment toggling plugin +{ config, lib, ... }: +{ + config.programs.nixvim.plugins.comment = lib.mkIf config.development.nixvim.enable { + enable = true; + settings = { + toggler = { + line = "<leader>cc"; # toggle line comment + block = "<leader>cb"; # toggle block comment + }; + opleader = { + line = "<leader>cc"; # toggle line comment + block = "<leader>cb"; # toggle block comment + }; + extra = { + above = "<leader>cu"; # add comment line above + below = "<leader>cd"; # add comment line below + eol = "<leader>ce"; # add comment at end of line + }; + }; + }; +} |
