diff options
author | sigmaSd <[email protected]> | 2023-04-12 07:23:35 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-12 08:23:35 +0200 |
commit | b5cc0a51bd23f0f09d662d7b1bbd9bbac344c571 (patch) | |
tree | 22134e60c95823532a3e2e5651af4fb9fb16ca9f /lua | |
parent | 21311d6b6455a1f4ce70708744f40f7137457ca8 (diff) |
feat(keybindings): add code action to visual mode (#4022)
* feat(keybindings): add code action to visual mode
* fmt
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/core/which-key.lua | 4 |
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" }, |