From 06fa62e6e9ea9b362d3c2340f4f4f843eb3cbc14 Mon Sep 17 00:00:00 2001 From: "Ed (Wright) Rosewright" Date: Mon, 22 Aug 2022 22:24:38 +0900 Subject: fix: update key bindings for comment.nvim to use new api (#2926) --- lua/lvim/core/which-key.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/lvim/core') 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 as the latter avoids going back in normal-mode. -- see https://neovim.io/doc/user/map.html#:map-cmd vmappings = { - ["/"] = { "lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())", "Comment" }, + ["/"] = { "(comment_toggle_linewise_visual)", "Comment toggle linewise (visual)" }, }, mappings = { [";"] = { "Alpha", "Dashboard" }, ["w"] = { "w!", "Save" }, ["q"] = { "lua require('lvim.utils.functions').smart_quit()", "Quit" }, - ["/"] = { "lua require('Comment.api').toggle_current_linewise()", "Comment" }, + ["/"] = { "(comment_toggle_linewise_current)", "Comment toggle current line" }, ["c"] = { "BufferKill", "Close Buffer" }, ["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" }, ["h"] = { "nohlsearch", "No Highlight" }, -- cgit v1.2.3