From 1ecaa1dcf8f5c2343d99089279d5bae11612c5f8 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Wed, 3 Jan 2024 01:28:54 +0100 Subject: [PATCH] remap code action menu to ca --- lua/lsp.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/lsp.lua b/lua/lsp.lua index 10b45aa..aed2cbe 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -6,12 +6,11 @@ local on_attach = function(client, bufnr) -- Mappings. utils.map("n", "K", "lua vim.lsp.buf.hover()") utils.map("n", "", "lua vim.lsp.buf.signature_help()") - 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", "", "lua vim.lsp.buf.type_definition()") utils.map("n", "", "lua vim.lsp.buf.rename()()") + utils.map("n", "ca", "lua vim.lsp.buf.code_action()") + -- list/add/remove workspace folders, not that I use them often utils.map("n", "wl", "lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))") utils.map("n", "wa", "lua vim.lsp.buf.add_workspace_folder()")