remove unused keymaps in lsp
This commit is contained in:
parent
c45d4d0ecf
commit
cff36c022f
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user