diff --git a/nvim/lua/keymaps.lua b/nvim/lua/keymaps.lua index f981620..50a410c 100644 --- a/nvim/lua/keymaps.lua +++ b/nvim/lua/keymaps.lua @@ -20,17 +20,18 @@ function M.harpoon() vim.keymap.set("", "ha", require("harpoon.mark").add_file) vim.keymap.set("", "ho", require("harpoon.ui").toggle_quick_menu) - vim.keymap.set("", "hn", function() require("harpoon.ui").nav_file(1) end) - vim.keymap.set("", "hk", function() require("harpoon.ui").nav_file(2) end) - vim.keymap.set("", "hi", function() require("harpoon.ui").nav_file(3) end) + vim.keymap.set("", "he", function() require("harpoon.ui").nav_file(1) end) + vim.keymap.set("", "hi", function() require("harpoon.ui").nav_file(2) end) end function M.lsp(env) local opts = { buffer = env.buffer } - vim.keymap.set("", "en", vim.diagnostic.goto_next, opts) - vim.keymap.set("", "ep", vim.diagnostic.goto_prev, opts) - vim.keymap.set("", "ee", vim.diagnostic.open_float, opts) + vim.keymap.set("", "dn", vim.diagnostic.goto_next, opts) + vim.keymap.set("", "dp", vim.diagnostic.goto_prev, opts) + vim.keymap.set("", "de", vim.diagnostic.open_float, opts) + vim.keymap.set("", "df", vim.lsp.buf.code_action, opts) + vim.keymap.set("", "rn", vim.lsp.buf.rename, opts) end ------------------------------------------------------------------------------ diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 6b940ad..ece706c 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -6,7 +6,7 @@ return { config = function() local lspconfig = require("lspconfig") - lspconfig.ccls.setup {} + lspconfig.clangd.setup {} vim.api.nvim_create_autocmd("LspAttach", { group = vim.api.nvim_create_augroup("UserLspConfig", {}),