From 4977a7c1f01e0f114b44664699f8322853549388 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Tue, 9 Jan 2024 10:02:41 +0100 Subject: [PATCH] lsp: code actions with a --- lua/plugins/lsp.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 27e9c86..1037e0d 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -35,6 +35,7 @@ return { print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, opts) vim.keymap.set("n", "D", vim.lsp.buf.type_definition, opts) + vim.keymap.set("n", "a", vim.lsp.buf.code_action, opts) vim.keymap.set("n", "rn", vim.lsp.buf.rename, opts) vim.keymap.set({ "n", "v" }, "ca", vim.lsp.buf.code_action, opts) vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)