From 364788b99ee2c09957e500ceacaf0a91511cceb7 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 18 Sep 2024 11:45:41 -0700 Subject: [PATCH] feat: add next/previous diagnostic keymap --- config/keymaps.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/keymaps.nix b/config/keymaps.nix index b55f3da..30e81c4 100644 --- a/config/keymaps.nix +++ b/config/keymaps.nix @@ -74,6 +74,24 @@ desc = "Search previous and center screen, reopening folds"; }; } + { + mode = "n"; + key = ""; + action = ":cnextzz"; + options = { + noremap = true; + desc = "Go to next diagnostic"; + }; + } + { + mode = "n"; + key = ""; + action = ":cprevzz"; + options = { + noremap = true; + desc = "Go to previous diagnostic"; + }; + } # The greatest remap of all time -- the primeagen { mode = [