diff options
Diffstat (limited to 'lua/user/whichkey.lua')
| -rw-r--r-- | lua/user/whichkey.lua | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index 56f18f9..994435f 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -87,8 +87,7 @@ local mappings = { ["e"] = { "<cmd>NvimTreeToggle<cr>", "Explorer" }, ["w"] = { "<cmd>w!<CR>", "Save" }, ["q"] = { "<cmd>q!<CR>", "Quit" }, - ["/"] = { "<cmd>lua require('Comment').toggle()<CR>", "Comment" }, - ["c"] = { "<cmd>Bdelete! %d<CR>", "Close Buffer" }, + ["c"] = { "<cmd>Bdelete!<CR>", "Close Buffer" }, ["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" }, ["f"] = { "<cmd>lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})<cr>", @@ -184,18 +183,5 @@ local mappings = { }, } -local vopts = { - mode = "v", -- VISUAL mode - prefix = "<leader>", - 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 = { - ["/"] = { "<ESC><CMD>lua require('Comment.api').gc(vim.fn.visualmode())<CR>", "Comment" }, -} - which_key.setup(setup) which_key.register(mappings, opts) -which_key.register(vmappings, vopts) |
