diff options
| author | Ben Cooper <[email protected]> | 2022-07-03 20:51:51 +0300 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-03 22:21:51 +0430 | 
| commit | 8dca3a915cc30718b3f6392fdfd2ab9c26bf1f60 (patch) | |
| tree | bfff6fe3c6c890a38f7f4f92686e0c7f7994cb9b /lua/lvim/core/comment.lua | |
| parent | ddc53a231dc439973b1b8034b5dfcb104eab74ce (diff) | |
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.
Diffstat (limited to 'lua/lvim/core/comment.lua')
| -rw-r--r-- | lua/lvim/core/comment.lua | 7 | 
1 files changed, 5 insertions, 2 deletions
| 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 | 
