فهرست منبع

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