From 1634cc16792154910917de841f72b9b16b1c1dbf Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sun, 17 Oct 2021 14:41:33 +0200 Subject: [PATCH] [nvim] feat: Comment plugin keymaps --- .config/nvim/lua/plugin/comment.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/plugin/comment.lua b/.config/nvim/lua/plugin/comment.lua index 6cb9912..c226f13 100644 --- a/.config/nvim/lua/plugin/comment.lua +++ b/.config/nvim/lua/plugin/comment.lua @@ -20,27 +20,30 @@ require("Comment").setup { ---operator-pending mapping ---Includes `gcc`, `gcb`, `gc[count]{motion}` and `gb[count]{motion}` basic = true, + ---extra mapping + ---Includes `gco`, `gcO`, `gcA` + extra = true, ---extended mapping ---Includes `g>`, `g<`, `g>[count]{motion}` and `g<[count]{motion}` - extra = false, + extended = false, }, ---LHS of line and block comment toggle mapping in NORMAL/VISUAL mode ---@type table toggler = { ---line-comment toggle - line = 'gcc', + line = "", ---block-comment toggle - block = 'gbc', + block = "bb", }, ---LHS of line and block comment operator-mode mapping in NORMAL/VISUAL mode ---@type table opleader = { ---line-comment opfunc mapping - line = 'gc', + line = "c", ---block-comment opfunc mapping - block = 'gb', + block = "b", }, ---Pre-hook, called before commenting the line