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 {