From 8dca3a915cc30718b3f6392fdfd2ab9c26bf1f60 Mon Sep 17 00:00:00 2001 From: Ben Cooper <63478578+bncpr@users.noreply.github.com> Date: Sun, 3 Jul 2022 20:51:51 +0300 Subject: fix(core.comment): fix default extra mappings (#2768) Comment default config was set with extra = false with a comment suggesting this was for `g>`, `g<`, etc. mappings. However the `extra` argument is for the `gco`, `gcO`, and `gcA` mappings which are enabled by default and, in my opinion are very useful. The extended mappings are still disabled by default. --- lua/lvim/core/comment.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lua/lvim/core/comment.lua') diff --git a/lua/lvim/core/comment.lua b/lua/lvim/core/comment.lua index 0b454074..86a2091a 100644 --- a/lua/lvim/core/comment.lua +++ b/lua/lvim/core/comment.lua @@ -26,9 +26,12 @@ function M.config() ---operator-pending mapping ---Includes `gcc`, `gcb`, `gc[count]{motion}` and `gb[count]{motion}` basic = true, - ---extended mapping + ---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 -- cgit v1.2.3