From ca8f8d01c017ddbb1d12ff4ebcb454f7f2c58fdf Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:31:36 +0100 Subject: [PATCH] vim goto next diagnostic --- home-manager/nixvim/config.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/home-manager/nixvim/config.nix b/home-manager/nixvim/config.nix index e5f26ec..9378660 100644 --- a/home-manager/nixvim/config.nix +++ b/home-manager/nixvim/config.nix @@ -154,6 +154,19 @@ action = "BufferPrevious"; options.desc = "Go to the previous tab"; } + # Next/Previous diagnostic + { + mode = "n"; + key = ""; + action = "lua vim.diagnostic.goto_next()"; + options.desc = "Go to the next diagnostic"; + } + { + mode = "n"; + key = ""; + action = "lua vim.diagnostic.goto_prev()"; + options.desc = "Go to the previous diagnostic"; + } # Terminal {