fix: deprecated diagnostic jumping config

This commit is contained in:
Nathan Zeng 2026-04-05 22:30:06 -07:00 committed by orip
parent 174b5fa2b1
commit a5d4d12c8c

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' })