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