|
|
|
@ -59,16 +59,16 @@ function M.setup_lsp_keymaps(bufnr) |
|
|
|
map("n", "<leader>D", "<cmd>Telescope diagnostics bufnr=0<CR>", "Show buffer diagnostics") |
|
|
|
map("n", "<leader>d", vim.diagnostic.open_float, "Show line diagnostics") |
|
|
|
map("n", "[d", function() |
|
|
|
vim.diagnostic.jump({ count = -1, float = true }) |
|
|
|
vim.diagnostic.jump({ count = -1 }) |
|
|
|
end, "Go to previous diagnostic") |
|
|
|
map("n", "]d", function() |
|
|
|
vim.diagnostic.jump({ count = 1, float = true }) |
|
|
|
vim.diagnostic.jump({ count = 1 }) |
|
|
|
end, "Go to next diagnostic") |
|
|
|
map("n", "[e", function() |
|
|
|
vim.diagnostic.jump({ count = -1, float = true, severity = vim.diagnostic.severity.ERROR }) |
|
|
|
vim.diagnostic.jump({ count = -1, severity = vim.diagnostic.severity.ERROR }) |
|
|
|
end, "Go to previous diagnostic (error only)") |
|
|
|
map("n", "]e", function() |
|
|
|
vim.diagnostic.jump({ count = 1, float = true, severity = vim.diagnostic.severity.ERROR }) |
|
|
|
vim.diagnostic.jump({ count = 1, severity = vim.diagnostic.severity.ERROR }) |
|
|
|
end, "Go to next diagnostic (error only)") |
|
|
|
|
|
|
|
-- Documentation |
|
|
|
|