remap code actions to <leader>ca
This commit is contained in:
parent
3ad2648482
commit
994e42f688
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ local on_attach = function(client, bufnr)
|
||||||
utils.map("n", "]d", "<cmd>lua vim.diagnostic.goto_next()<CR>")
|
utils.map("n", "]d", "<cmd>lua vim.diagnostic.goto_next()<CR>")
|
||||||
utils.map("n", "[l", "<cmd>lua vim.diagnostic.show_line_diagnostics()<CR>")
|
utils.map("n", "[l", "<cmd>lua vim.diagnostic.show_line_diagnostics()<CR>")
|
||||||
utils.map("n", "]l", "<cmd>lua vim.diagnostic.set_loclist()<CR>")
|
utils.map("n", "]l", "<cmd>lua vim.diagnostic.set_loclist()<CR>")
|
||||||
utils.map("n", "<M-CR>", "<cmd>lua vim.lsp.buf.code_action()<CR>")
|
utils.map("n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>")
|
||||||
utils.map("n", "<M-r>", "<cmd>lua vim.lsp.buf.rename()()<CR>")
|
utils.map("n", "<M-r>", "<cmd>lua vim.lsp.buf.rename()()<CR>")
|
||||||
utils.map("n", "<M-t>", "<cmd>lua vim.lsp.buf.type_definition()<CR>")
|
utils.map("n", "<M-t>", "<cmd>lua vim.lsp.buf.type_definition()<CR>")
|
||||||
|
|
||||||
|
|
Reference in a new issue