diff options
| author | 2026-04-17 10:52:55 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:52:55 +0100 | |
| commit | 73ec350044e49ddbad203f4959357b4a7b17c15b (patch) | |
| tree | c65131c1bf192001f5752bc5563c6ed54b2584ec /home/.config | |
| parent | 9163655c0287891a0ea533664f18d4693495f6a4 (diff) | |
| download | dotfiles-73ec350044e49ddbad203f4959357b4a7b17c15b.tar.gz dotfiles-73ec350044e49ddbad203f4959357b4a7b17c15b.tar.bz2 dotfiles-73ec350044e49ddbad203f4959357b4a7b17c15b.zip | |
refactor(nvim): remove LSP mappings now default in 0.12
Remove gra (code_action) and <leader>cl (codelens.run) mappings.
Neovim 0.12 provides these as gra and grx defaults respectively.
Also remove unused nvmap helper function.
Diffstat (limited to 'home/.config')
| -rw-r--r-- | home/.config/nvim/after/plugin/autocmds.lua | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/home/.config/nvim/after/plugin/autocmds.lua b/home/.config/nvim/after/plugin/autocmds.lua index f439bec..9bbbdad 100644 --- a/home/.config/nvim/after/plugin/autocmds.lua +++ b/home/.config/nvim/after/plugin/autocmds.lua @@ -133,12 +133,8 @@ autocmd("LspAttach", { local function nmap(l, r, desc) map("n", l, r, desc) end - local function nvmap(l, r, desc) - map({ "n", "v" }, l, r, desc) - end nmap("<c-]>", vim.lsp.buf.definition, "Goto definition") nmap("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration") - nvmap("gra", vim.lsp.buf.code_action, "[R]un code [A]ction") -- The following two autocommands are used to highlight references of the -- word under your cursor when your cursor rests there for a little while. @@ -194,7 +190,6 @@ autocmd("LspAttach", { callback = vim.lsp.codelens.refresh, } ) - nmap("<leader>cl", vim.lsp.codelens.run, "Run [C]ode [L]ens") end -- The following code creates a keymap to toggle inlay hints in your |
