summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(