fix: deprecated diagnostic jumping config
This commit is contained in:
@@ -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' })
|
||||||
|
|||||||
Reference in New Issue
Block a user