finish error handling

This commit is contained in:
2026-06-29 22:55:56 +02:00
parent 683215d09d
commit a40c9588a0

View File

@@ -97,14 +97,14 @@ vim.api.nvim_create_autocmd("LspAttach", {
map("n", "g.", vim.diagnostic.open_float, { desc = "line diagnostics" }) map("n", "g.", vim.diagnostic.open_float, { desc = "line diagnostics" })
map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" }) map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" })
-- diagnostics only on error. -- diagnostics only on error. g] is used by mini.ai
map("n", "g]", function() map("n", "]g", function()
vim.lsp.diagnostic.goto_next({ vim.diagnostic.goto_next({
severity = vim.diagnostic.severity.ERROR, severity = vim.diagnostic.severity.ERROR,
}) })
end, { desc = "next error" }) end, { desc = "next error" })
map("n", "g[", function() map("n", "[g", function()
vim.lsp.diagnostic.goto_prev({ vim.diagnostic.goto_prev({
severity = vim.diagnostic.severity.ERROR, severity = vim.diagnostic.severity.ERROR,
}) })
end, { desc = "prev error" }) end, { desc = "prev error" })