From 7aca777bf9fc03b23fd94d8051db4bddc44e2035 Mon Sep 17 00:00:00 2001 From: jasmine Date: Wed, 11 Jun 2025 15:31:40 +0800 Subject: [PATCH] update comment keybinding --- config/plugins/editor/comment.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/config/plugins/editor/comment.nix b/config/plugins/editor/comment.nix index 2e8056f..d4ae3e7 100644 --- a/config/plugins/editor/comment.nix +++ b/config/plugins/editor/comment.nix @@ -4,19 +4,18 @@ settings = { toggler = { - line = "cl"; - block = "cb"; + line = "/n"; }; opleader = { - line = "cl"; - block = "cb"; + line = "/l"; + block = "/b"; }; extra = { - above = "c"; - below = "c"; - eol = "c"; + above = "/o"; + below = "/e"; + eol = "/i"; }; mappings = { @@ -27,9 +26,9 @@ }; keymaps = [ - { # prefix: comment + { mode = ["n" "v"]; - key = "c"; + key = "/"; action = ""; options = { desc = "+comment";