remap code actions to either <leader>c or <leader>a
This commit is contained in:
parent
15bc48a6c5
commit
253d536ba4
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ 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", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>")
|
utils.map("n", "<leader>a", "<cmd>lua vim.lsp.buf.code_action()<CR>")
|
||||||
|
utils.map("n", "<leader>c", "<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>")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue