remove unused keymaps in lsp

This commit is contained in:
Triston Armstrong 2024-07-02 13:59:11 -04:00
parent c45d4d0ecf
commit cff36c022f
No known key found for this signature in database
GPG Key ID: FADE6AC6F956FC52

View File

@ -41,15 +41,11 @@ return {
-- Keymaps -- Keymaps
vim.keymap.set("n", "K", vim.lsp.buf.hover, key_opts) vim.keymap.set("n", "K", vim.lsp.buf.hover, key_opts)
vim.keymap.set("n", "gd", vim.lsp.buf.definition, key_opts) vim.keymap.set("n", "gd", vim.lsp.buf.definition, key_opts)
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, key_opts)
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, key_opts)
vim.keymap.set("n", "gr", vim.lsp.buf.references, key_opts)
vim.keymap.set("n", "[d", vim.diagnostic.goto_next, key_opts) vim.keymap.set("n", "[d", vim.diagnostic.goto_next, key_opts)
vim.keymap.set("n", "]d", vim.diagnostic.goto_prev, key_opts) vim.keymap.set("n", "]d", vim.diagnostic.goto_prev, key_opts)
vim.keymap.set("n", "<leader>df", vim.diagnostic.open_float, key_opts) vim.keymap.set("n", "<leader>df", vim.diagnostic.open_float, key_opts)
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, key_opts) vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, key_opts)
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, key_opts) vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, key_opts)
vim.keymap.set("i", "<C-h>", vim.lsp.buf.signature_help, key_opts)
end end
mason_lspconfig.setup({ mason_lspconfig.setup({