diff options
| -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", |