|
|
|
@ -87,7 +87,6 @@ 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" },
|
|
|
|
|
["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" },
|
|
|
|
|
["f"] = {
|
|
|
|
@ -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)
|
|
|
|
|