From 8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 8 Oct 2023 13:12:44 +0200 Subject: fix(hm/conf/nvim): Update to new keymap format --- hm/soispha/conf/nvim/plgs/comment-nvim/default.nix | 48 ++++++++++++---------- 1 file changed, 26 insertions(+), 22 deletions(-) (limited to 'hm/soispha/conf/nvim/plgs/comment-nvim/default.nix') 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 = "(comment_toggle_linewise_visual)"; - desc = "toggle the current line in a linewise comment"; - }; - "gbc" = { - action = "(comment_toggle_blockwise_visual)"; - desc = "toggle the current line in a blockwise comment"; - }; - }; - normal = { - "gcc" = { - action = "(comment_toggle_linewise_current)"; - desc = "toggle the current line in a linewise comment"; - }; - "gbc" = { - action = "(comment_toggle_blockwise_current)"; - desc = "toggle the current line in a blockwise comment"; - }; - }; - }; + keymaps = [ + { + key = "gcc"; + mode = "v"; + action = "(comment_toggle_linewise_visual)"; + options.desc = "toggle the current line in a linewise comment"; + } + { + key = "gbc"; + mode = "v"; + action = "(comment_toggle_blockwise_visual)"; + options.desc = "toggle the current line in a blockwise comment"; + } + { + key = "gcc"; + mode = "n"; + action = "(comment_toggle_linewise_current)"; + options.desc = "toggle the current line in a linewise comment"; + } + { + key = "gbc"; + mode = "n"; + action = "(comment_toggle_blockwise_current)"; + options.desc = "toggle the current line in a blockwise comment"; + } + ]; }; } -- cgit 1.4.1