From d5f92ac1afd2780cf9a13420eb679d1fa0f9ed42 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 19 Feb 2026 18:20:15 +0100 Subject: Fix goto next diagnostic lsp --- lua/ache/plugins/lsp/lspconfig.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lua/ache/plugins/lsp') diff --git a/lua/ache/plugins/lsp/lspconfig.lua b/lua/ache/plugins/lsp/lspconfig.lua index b11409f..1d34127 100644 --- a/lua/ache/plugins/lsp/lspconfig.lua +++ b/lua/ache/plugins/lsp/lspconfig.lua @@ -76,14 +76,20 @@ return { vim.keymap.set( "n", "d", - vim.diagnostic.goto_next, - { buffer = ev.buf, silent = true, desc = "Go to next diagnostic" } + vim.diagnostic.jump({ count = 1, float = false })({ + buffer = ev.buf, + silent = true, + desc = "Go to next diagnostic", + }) ) vim.keymap.set( "n", -- cgit v1.3-2-g11bf