remove some diagnostic/lsp mappings cuz 0.10 adds them by default
This commit is contained in:
parent
0f95575937
commit
e7d4ff89e9
@ -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.declaration, opts "Go to declaration")
|
||||||
map("n", "gd", vim.lsp.buf.definition, opts "Go to definition")
|
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", "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>sh", vim.lsp.buf.signature_help, opts "Show signature help")
|
||||||
map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, opts "Add workspace folder")
|
map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, opts "Add workspace folder")
|
||||||
|
@ -26,10 +26,7 @@ map("n", "<leader>fm", function()
|
|||||||
end, { desc = "format files" })
|
end, { desc = "format files" })
|
||||||
|
|
||||||
-- global lsp mappings
|
-- global lsp mappings
|
||||||
map("n", "<leader>lf", vim.diagnostic.open_float, { desc = "lsp floating diagnostics" })
|
map("n", "<leader>ds", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" })
|
||||||
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" })
|
|
||||||
|
|
||||||
-- tabufline
|
-- tabufline
|
||||||
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" })
|
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" })
|
||||||
|
Loading…
Reference in New Issue
Block a user