remove some diagnostic/lsp mappings cuz 0.10 adds them by default

This commit is contained in:
siduck 2024-05-19 13:37:17 +05:30
parent 0f95575937
commit e7d4ff89e9
2 changed files with 1 additions and 5 deletions

View File

@ -10,7 +10,6 @@ M.on_attach = function(client, bufnr)
map("n", "gD", vim.lsp.buf.declaration, opts "Go to declaration")
map("n", "gd", vim.lsp.buf.definition, opts "Go to definition")
map("n", "K", vim.lsp.buf.hover, opts "hover information")
map("n", "gi", vim.lsp.buf.implementation, opts "Go to implementation")
map("n", "<leader>sh", vim.lsp.buf.signature_help, opts "Show signature help")
map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, opts "Add workspace folder")

View File

@ -26,10 +26,7 @@ map("n", "<leader>fm", function()
end, { desc = "format files" })
-- global lsp mappings
map("n", "<leader>lf", vim.diagnostic.open_float, { desc = "lsp floating diagnostics" })
map("n", "[d", vim.diagnostic.goto_prev, { desc = "lsp prev diagnostic" })
map("n", "]d", vim.diagnostic.goto_next, { desc = "lsp next diagnostic" })
map("n", "<leader>q", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" })
map("n", "<leader>ds", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" })
-- tabufline
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" })