aboutsummaryrefslogtreecommitdiffstats
path: root/hm/soispha/conf/nvim/plgs/comment-nvim
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-08 13:12:44 +0200
committerSoispha <soispha@vhack.eu>2023-10-08 13:12:44 +0200
commit8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7 (patch)
tree90530153a36e969569115c6e06ea17c473826670 /hm/soispha/conf/nvim/plgs/comment-nvim
parentchore(version): v1.15.0 (diff)
downloadnixos-config-8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7.zip
fix(hm/conf/nvim): Update to new keymap format
Diffstat (limited to 'hm/soispha/conf/nvim/plgs/comment-nvim')
-rw-r--r--hm/soispha/conf/nvim/plgs/comment-nvim/default.nix48
1 files changed, 26 insertions, 22 deletions
diff --git a/hm/soispha/conf/nvim/plgs/comment-nvim/default.nix b/hm/soispha/conf/nvim/plgs/comment-nvim/default.nix
index cf99d3d5..b0d405f3 100644
--- a/hm/soispha/conf/nvim/plgs/comment-nvim/default.nix
+++ b/hm/soispha/conf/nvim/plgs/comment-nvim/default.nix
@@ -10,27 +10,31 @@
extra = false;
};
};
- maps = {
- visual = {
- "gcc" = {
- action = "<Plug>(comment_toggle_linewise_visual)";
- desc = "toggle the current line in a linewise comment";
- };
- "gbc" = {
- action = "<Plug>(comment_toggle_blockwise_visual)";
- desc = "toggle the current line in a blockwise comment";
- };
- };
- normal = {
- "gcc" = {
- action = "<Plug>(comment_toggle_linewise_current)";
- desc = "toggle the current line in a linewise comment";
- };
- "gbc" = {
- action = "<Plug>(comment_toggle_blockwise_current)";
- desc = "toggle the current line in a blockwise comment";
- };
- };
- };
+ keymaps = [
+ {
+ key = "gcc";
+ mode = "v";
+ action = "<Plug>(comment_toggle_linewise_visual)";
+ options.desc = "toggle the current line in a linewise comment";
+ }
+ {
+ key = "gbc";
+ mode = "v";
+ action = "<Plug>(comment_toggle_blockwise_visual)";
+ options.desc = "toggle the current line in a blockwise comment";
+ }
+ {
+ key = "gcc";
+ mode = "n";
+ action = "<Plug>(comment_toggle_linewise_current)";
+ options.desc = "toggle the current line in a linewise comment";
+ }
+ {
+ key = "gbc";
+ mode = "n";
+ action = "<Plug>(comment_toggle_blockwise_current)";
+ options.desc = "toggle the current line in a blockwise comment";
+ }
+ ];
};
}