finish error handling
This commit is contained in:
@@ -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" })
|
||||||
|
|||||||
Reference in New Issue
Block a user