From f8e1bd25375d2476fbfbf3a6bf1431036ce4186a Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Tue, 3 Jan 2023 18:03:57 -0800 Subject: Uncommented code action keymap --- lua/user/keymaps.lua | 2 ++ lua/user/lsp/handlers.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index fd9d2c2..48b8970 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -93,6 +93,8 @@ keymap("n", "bl", ":JABSOpen", opts) --Open buffer switcher ('b'uf -- Toggle GUI colors keymap("n", "g", ":set termguicolors!:TSToggle highlight", opts) -- ('g'ui) +-- LSP options - see lsp/handlers.lua + -- Telescope options keymap("n", "tf", ":Telescope find_files", opts) -- ('f'ind_files) keymap("n", "ts", ":Telescope live_grep", opts) -- ('s'tring) diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index 2c0b06c..27111b2 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -75,7 +75,7 @@ local function lsp_keymaps(bufnr) vim.api.nvim_buf_set_keymap(bufnr, "n", "", "lua vim.lsp.buf.signature_help()", opts) -- vim.api.nvim_buf_set_keymap(bufnr, "n", "rn", "lua vim.lsp.buf.rename()", opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "lua vim.lsp.buf.references()", opts) - -- vim.api.nvim_buf_set_keymap(bufnr, "n", "ca", "lua vim.lsp.buf.code_action()", opts) + vim.api.nvim_buf_set_keymap(bufnr, "n", "ca", "lua vim.lsp.buf.code_action()", opts) -- vim.api.nvim_buf_set_keymap(bufnr, "n", "f", "lua vim.diagnostic.open_float()", opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "[d", 'lua vim.diagnostic.goto_prev({ border = "rounded" })', opts) vim.api.nvim_buf_set_keymap( -- cgit