- fix: Name of autocommands for JS keymaps fixed
- feature: Trigger code action on <Ctrl+.> just like VS Code
This commit is contained in:
Pratik Tripathy
2024-05-18 18:33:33 +05:30
parent 67ef83999d
commit b2a32b6a89
2 changed files with 3 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ local on_attach = function(_, bufnr)
nmap("<leader>cr", vim.lsp.buf.rename, "Rename Symbol")
nmap("<leader>ca", vim.lsp.buf.code_action, "Code Action")
nmap("<C-.>", vim.lsp.buf.code_action, "Code Action: VSCode Style")
-- See `:help K` for why this keymap
-- nmap("K", vim.lsp.buf.hover, "Hover Documentation")
-- nmap("<C-k>", vim.lsp.buf.signature_help, "Signature Documentation")