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" })