From f11eff223d021dd9553a7152278c00ca41b7ef37 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 13 Oct 2021 22:01:35 +0200 Subject: Add lunarvim updates --- .config/nvim/lua/core/which-key.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/nvim/lua/core/which-key.lua') diff --git a/.config/nvim/lua/core/which-key.lua b/.config/nvim/lua/core/which-key.lua index dca1d77..ef95ce6 100644 --- a/.config/nvim/lua/core/which-key.lua +++ b/.config/nvim/lua/core/which-key.lua @@ -61,12 +61,12 @@ 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 = { - ["k"] = { ":CommentToggle", "Comment" }, + ["k"] = { "lua ___comment_gc(vim.fn.visualmode())", "Comment" }, }, mappings = { ["w"] = { "w!", "Save" }, ["q"] = { "q!", "Quit" }, - ["k"] = { "CommentToggle", "Comment" }, + ["k"] = { "lua require('Comment').toggle()", "Comment" }, ["c"] = { "BufferClose!", "Close Buffer" }, ["f"] = { "Telescope find_files", "Find File" }, ["n"] = { "nohlsearch", "No Highlight" }, -- cgit v1.2.3-70-g09d2