feat: add next/previous diagnostic keymap

This commit is contained in:
Youwen Wu 2024-09-18 11:45:41 -07:00
parent 09d61e726a
commit 364788b99e
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -74,6 +74,24 @@
desc = "Search previous and center screen, reopening folds";
};
}
{
mode = "n";
key = "<C-k>";
action = ":cnext<CR>zz";
options = {
noremap = true;
desc = "Go to next diagnostic";
};
}
{
mode = "n";
key = "<C-j>";
action = ":cprev<CR>zz";
options = {
noremap = true;
desc = "Go to previous diagnostic";
};
}
# The greatest remap of all time -- the primeagen
{
mode = [