소스 검색

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

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

* fmt
sigmaSd 2 년 전
부모
커밋
b5cc0a51bd
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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" },