From fee7b82c0c4590f0e153ae9fb47e121a9fa18c30 Mon Sep 17 00:00:00 2001 From: Atif Date: Fri, 3 Oct 2025 00:42:21 +0600 Subject: [PATCH] feat(keymaps): diagnostic navigation respect count - Multiply diagnostic jump count by vim.v.count1 so numeric prefixes are honored - Preserve next/previous logic by keeping sign based on the `next` argument - Leave severity and floating window behavior unchanged while fixing count handling --- lua/lazyvim/config/keymaps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index 243df487..5709aa6f 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -122,7 +122,7 @@ end, { desc = "Format" }) local diagnostic_goto = function(next, severity) return function() vim.diagnostic.jump({ - count = next and 1 or -1, + count = (next and 1 or -1) * vim.v.count1, severity = severity and vim.diagnostic.severity[severity] or nil, float = true, })