diff options
author | Ed (Wright) Rosewright <[email protected]> | 2022-08-22 22:24:38 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2022-08-22 15:24:38 +0200 |
commit | 06fa62e6e9ea9b362d3c2340f4f4f843eb3cbc14 (patch) | |
tree | 7fba2035a69a93e7b3ca20fd610b82e790a1726b /lua/lvim/core/which-key.lua | |
parent | 0fc1e423097485035bd6c1f19d64ce8424387ca9 (diff) |
fix: update key bindings for comment.nvim to use new api (#2926)
Diffstat (limited to 'lua/lvim/core/which-key.lua')
-rw-r--r-- | lua/lvim/core/which-key.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua index b1cfdc03..2301943f 100644 --- a/lua/lvim/core/which-key.lua +++ b/lua/lvim/core/which-key.lua @@ -76,13 +76,13 @@ M.config = function() -- NOTE: Prefer using : over <cmd> as the latter avoids going back in normal-mode. -- see https://neovim.io/doc/user/map.html#:map-cmd vmappings = { - ["/"] = { "<ESC><CMD>lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())<CR>", "Comment" }, + ["/"] = { "<Plug>(comment_toggle_linewise_visual)", "Comment toggle linewise (visual)" }, }, mappings = { [";"] = { "<cmd>Alpha<CR>", "Dashboard" }, ["w"] = { "<cmd>w!<CR>", "Save" }, ["q"] = { "<cmd>lua require('lvim.utils.functions').smart_quit()<CR>", "Quit" }, - ["/"] = { "<cmd>lua require('Comment.api').toggle_current_linewise()<CR>", "Comment" }, + ["/"] = { "<Plug>(comment_toggle_linewise_current)", "Comment toggle current line" }, ["c"] = { "<cmd>BufferKill<CR>", "Close Buffer" }, ["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" }, ["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" }, |