diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index 56f18f9..c253333 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -87,7 +87,6 @@ local mappings = { ["e"] = { "NvimTreeToggle", "Explorer" }, ["w"] = { "w!", "Save" }, ["q"] = { "q!", "Quit" }, - ["/"] = { "lua require('Comment').toggle()", "Comment" }, ["c"] = { "Bdelete! %d", "Close Buffer" }, ["h"] = { "nohlsearch", "No Highlight" }, ["f"] = { @@ -184,18 +183,5 @@ local mappings = { }, } -local vopts = { - mode = "v", -- VISUAL mode - prefix = "", - buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings - silent = true, -- use `silent` when creating keymaps - noremap = true, -- use `noremap` when creating keymaps - nowait = true, -- use `nowait` when creating keymaps -} -local vmappings = { - ["/"] = { "lua require('Comment.api').gc(vim.fn.visualmode())", "Comment" }, -} - which_key.setup(setup) which_key.register(mappings, opts) -which_key.register(vmappings, vopts)