diff --git a/init.lua b/init.lua index cacc5b7b1c3..09a4be3f8d5 100644 --- a/init.lua +++ b/init.lua @@ -184,7 +184,12 @@ vim.diagnostic.config { 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` - jump = { float = true }, + jump = { + on_jump = function(diagnostic, _) + if not diagnostic then return end + vim.diagnostic.open_float { focus = false } + end, + }, } vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) diff --git a/lua/kickstart/health.lua b/lua/kickstart/health.lua index ca684516003..9910238148f 100644 --- a/lua/kickstart/health.lua +++ b/lua/kickstart/health.lua @@ -12,7 +12,7 @@ local check_version = function() return end - if vim.version.ge(vim.version(), '0.11') then + if vim.version.ge(vim.version(), '0.12') then vim.health.ok(string.format("Neovim version is: '%s'", verstr)) else vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))