summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@scu.edu>2023-01-03 18:03:57 -0800
committerLouie Shprung <lshprung@scu.edu>2023-01-03 18:03:57 -0800
commitf8e1bd25375d2476fbfbf3a6bf1431036ce4186a (patch)
tree065eba7a8e7ec78e418d485829bcbc1c8e7c03c8
parent618607ffd66c4a9786b0f128204d0d9df2270029 (diff)
Uncommented code action keymap
-rw-r--r--lua/user/keymaps.lua2
-rw-r--r--lua/user/lsp/handlers.lua2
2 files changed, 3 insertions, 1 deletions
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", "<leader>bl", ":JABSOpen<CR>", opts) --Open buffer switcher ('b'uf
-- Toggle GUI colors
keymap("n", "<leader>g", ":set termguicolors!<CR>:TSToggle highlight<CR>", opts) -- ('g'ui)
+-- LSP options - see lsp/handlers.lua
+
-- Telescope options
keymap("n", "<leader>tf", ":Telescope find_files<CR>", opts) -- ('f'ind_files)
keymap("n", "<leader>ts", ":Telescope live_grep<CR>", 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", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts)
-- vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts)
- -- vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
+ vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
-- vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>f", "<cmd>lua vim.diagnostic.open_float()<CR>", opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "[d", '<cmd>lua vim.diagnostic.goto_prev({ border = "rounded" })<CR>', opts)
vim.api.nvim_buf_set_keymap(