From 253d536ba431a465ffe470df51c7188062c78738 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 18 Dec 2023 14:29:25 +0100 Subject: [PATCH] remap code actions to either c or a --- lua/lsp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lsp.lua b/lua/lsp.lua index 981c6ab..02b412e 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -14,7 +14,8 @@ local on_attach = function(client, bufnr) utils.map("n", "]d", "lua vim.diagnostic.goto_next()") utils.map("n", "[l", "lua vim.diagnostic.show_line_diagnostics()") utils.map("n", "]l", "lua vim.diagnostic.set_loclist()") - utils.map("n", "ca", "lua vim.lsp.buf.code_action()") + utils.map("n", "a", "lua vim.lsp.buf.code_action()") + utils.map("n", "c", "lua vim.lsp.buf.code_action()") utils.map("n", "", "lua vim.lsp.buf.rename()()") utils.map("n", "", "lua vim.lsp.buf.type_definition()")