Merge pull request #1982 from nathanzeng/jump-diagnostic

fix: deprecated diagnostic jumping config
This commit is contained in:
Ori Perry 2026-05-07 00:10:03 +03:00 committed by GitHub
commit cfdc17be3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,7 +192,15 @@ do
virtual_lines = false, -- Text shows up underneath the line, with virtual lines virtual_lines = false, -- Text shows up underneath the line, with virtual lines
-- Auto open the float, so you can easily read the errors when jumping with `[d` and `]d` -- Auto open the float, so you can easily read the errors when jumping with `[d` and `]d`
jump = { float = true }, jump = {
on_jump = function(_, bufnr)
vim.diagnostic.open_float {
bufnr = bufnr,
scope = 'cursor',
focus = false,
}
end,
},
} }
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })