summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsigmaSd <[email protected]>2023-04-12 07:23:35 +0100
committerGitHub <[email protected]>2023-04-12 08:23:35 +0200
commitb5cc0a51bd23f0f09d662d7b1bbd9bbac344c571 (patch)
tree22134e60c95823532a3e2e5651af4fb9fb16ca9f
parent21311d6b6455a1f4ce70708744f40f7137457ca8 (diff)
feat(keybindings): add code action to visual mode (#4022)
* feat(keybindings): add code action to visual mode * fmt
-rw-r--r--lua/lvim/core/which-key.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua
index c51c5cd8..2ab47b05 100644
--- a/lua/lvim/core/which-key.lua
+++ b/lua/lvim/core/which-key.lua
@@ -97,6 +97,10 @@ M.config = function()
-- see https://neovim.io/doc/user/map.html#:map-cmd
vmappings = {
["/"] = { "<Plug>(comment_toggle_linewise_visual)", "Comment toggle linewise (visual)" },
+ l = {
+ name = "LSP",
+ a = { "<cmd>lua vim.lsp.buf.code_action()<cr>", "Code Action" },
+ },
},
mappings = {
[";"] = { "<cmd>Alpha<CR>", "Dashboard" },