|
|
@ -79,6 +79,7 @@ local opts = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
local mappings = {
|
|
|
|
local mappings = {
|
|
|
|
|
|
|
|
["/"] = { "<cmd>lua require(\"Comment.api\").toggle_current_linewise()<CR>", "Comment" },
|
|
|
|
["a"] = { "<cmd>Alpha<cr>", "Alpha" },
|
|
|
|
["a"] = { "<cmd>Alpha<cr>", "Alpha" },
|
|
|
|
["b"] = {
|
|
|
|
["b"] = {
|
|
|
|
"<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false})<cr>",
|
|
|
|
"<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false})<cr>",
|
|
|
@ -183,5 +184,18 @@ 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\").toggle_linewise_op(vim.fn.visualmode())<CR>", "Comment" },
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
which_key.setup(setup)
|
|
|
|
which_key.setup(setup)
|
|
|
|
which_key.register(mappings, opts)
|
|
|
|
which_key.register(mappings, opts)
|
|
|
|
|
|
|
|
which_key.register(vmappings, vopts)
|
|
|
|