Przeglądaj źródła

feat(keybindings): add code action to visual mode (#4022)

* feat(keybindings): add code action to visual mode

* fmt
sigmaSd 2 lat temu
rodzic
commit
b5cc0a51bd
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      lua/lvim/core/which-key.lua

+ 4 - 0
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" },