summaryrefslogtreecommitdiff
path: root/lua/user/whichkey.lua
diff options
context:
space:
mode:
authorchristianchiarulli <chrisatmachine@gmail.com>2021-12-14 19:00:29 -0500
committerChristianChiarulli <chris.machine@pm.me>2021-12-18 02:15:50 -0500
commit6e30af8ab70ecf4d9e7d33c46cfb849368e118e2 (patch)
treeb6e3e789b166777161703cbb0fa8ef62b4345b38 /lua/user/whichkey.lua
parenta7e69ddee3fd8e2a0b9b15ff463e236a8158edff (diff)
add autocommands
add autocommands fix fix s fix close
Diffstat (limited to 'lua/user/whichkey.lua')
-rw-r--r--lua/user/whichkey.lua16
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)