소스 검색

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.
Ben Cooper 3 년 전
부모
커밋
8dca3a915c
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      lua/lvim/core/comment.lua

+ 5 - 2
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