diff options
| author | ache <ache@ache.one> | 2026-02-19 18:20:15 +0100 |
|---|---|---|
| committer | ache <ache@ache.one> | 2026-02-19 18:20:15 +0100 |
| commit | d5f92ac1afd2780cf9a13420eb679d1fa0f9ed42 (patch) | |
| tree | c759f5829cd3e4402645990388b55df5d653b8c5 /lua/ache/plugins | |
| parent | fix: Try to fix treesitter on python fold (diff) | |
Fix goto next diagnostic lsp
Diffstat (limited to 'lua/ache/plugins')
| -rw-r--r-- | lua/ache/plugins/lsp/lspconfig.lua | 14 |
1 files changed, 10 insertions, 4 deletions
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_prev, - { buffer = ev.buf, silent = true, desc = "Go to previous diagnostic" } + vim.diagnostic.jump({ count = -1, float = true })({ + buffer = ev.buf, + silent = true, + desc = "Go to previous diagnostic", + }) ) 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", |