diff --git a/config/plugins/editor/comment.nix b/config/plugins/editor/comment.nix index 55a09e7..4ba4e63 100644 --- a/config/plugins/editor/comment.nix +++ b/config/plugins/editor/comment.nix @@ -3,6 +3,31 @@ { plugins.comment = { enable = true; + settings = { + # LHS of toggle mappings in NORMAL mode + toggler = { + # Line-comment toggle keymap + line = "c"; + # Block-comment toggle keymap + block = "c"; + }; + # LHS of operator-pending mappings in NORMAL and VISUAL mode + opleader = { + # Line-comment keymap + line = "c"; + # Block-comment keymap + block = "c"; + }; + # LHS of extra mappings + extra = { + # Add comment on the line above + above = "co"; + # Add comment on the line below + below = "ce"; + # Add comment at the end of line + eol = "ca"; + }; + }; }; }