From a40c9588a0be233fd4fbc85c2cbdbad38a30f434 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 29 Jun 2026 22:55:56 +0200 Subject: [PATCH] finish error handling --- nvim/.config/nvim/lua/romanzy/keymaps.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nvim/.config/nvim/lua/romanzy/keymaps.lua b/nvim/.config/nvim/lua/romanzy/keymaps.lua index 0dcbd12..a533c68 100644 --- a/nvim/.config/nvim/lua/romanzy/keymaps.lua +++ b/nvim/.config/nvim/lua/romanzy/keymaps.lua @@ -97,14 +97,14 @@ vim.api.nvim_create_autocmd("LspAttach", { map("n", "g.", vim.diagnostic.open_float, { desc = "line diagnostics" }) map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" }) --- diagnostics only on error. -map("n", "g]", function() - vim.lsp.diagnostic.goto_next({ +-- diagnostics only on error. g] is used by mini.ai +map("n", "]g", function() + vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR, }) end, { desc = "next error" }) -map("n", "g[", function() - vim.lsp.diagnostic.goto_prev({ +map("n", "[g", function() + vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR, }) end, { desc = "prev error" })