Skip to content

Commit 2194d49

Browse files
committed
fix: deprecated diagnostic jumping config
- bump checkhealth minimum version to 0.12
1 parent 16dd8f5 commit 2194d49

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

init.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,12 @@ vim.diagnostic.config {
184184
virtual_lines = false, -- Text shows up underneath the line, with virtual lines
185185

186186
-- Auto open the float, so you can easily read the errors when jumping with `[d` and `]d`
187-
jump = { float = true },
187+
jump = {
188+
on_jump = function(diagnostic, _)
189+
if not diagnostic then return end
190+
vim.diagnostic.open_float { focus = false }
191+
end,
192+
},
188193
}
189194

190195
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })

lua/kickstart/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ local check_version = function()
1212
return
1313
end
1414

15-
if vim.version.ge(vim.version(), '0.11') then
15+
if vim.version.ge(vim.version(), '0.12') then
1616
vim.health.ok(string.format("Neovim version is: '%s'", verstr))
1717
else
1818
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))

0 commit comments

Comments
 (0)