aboutsummaryrefslogtreecommitdiff
path: root/lua/kickstart/health.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-07-22 20:25:55 +0200
committerDamjan 9000 <damjan.9000@gmail.com>2024-07-22 20:25:55 +0200
commite1d6094136efb6f0c1f5a9f303fb8cbbe32b5976 (patch)
tree76ca861005d8c361e86696cd7cc0870fb5cd2178 /lua/kickstart/health.lua
parenta6442e80813b40238066676b7ac97951c1bd1822 (diff)
parent56b9114bf29cdc0c0f5de78b5deae1fe0ab65db1 (diff)
Merge 'upstream' Neovim 0.10 updates and more
Merged commits from upstream: Update comment about the toggle inlay hints keymap lint: fix lsp warning in `vim.lsp.inlay_hint.is_enabled` Update lazydev config to fix "Undefined field `fs_stat`" LSP error Neovim 0.10 updates Fix comment about mini.ai example Make conform.nvim be lazy-loadable again Update README.md | %userprofile%\appdata\local -> %localappdata% Make debug lazy loadable Remove redundant require Fix neo-tree keymap description fix: add required parsers from nvim-treesitter
Diffstat (limited to 'lua/kickstart/health.lua')
-rw-r--r--lua/kickstart/health.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/kickstart/health.lua b/lua/kickstart/health.lua
index 04df77b..b59d086 100644
--- a/lua/kickstart/health.lua
+++ b/lua/kickstart/health.lua
@@ -6,13 +6,13 @@
--]]
local check_version = function()
- local verstr = string.format('%s.%s.%s', vim.version().major, vim.version().minor, vim.version().patch)
- if not vim.version.cmp then
+ local verstr = tostring(vim.version())
+ if not vim.version.ge then
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
return
end
- if vim.version.cmp(vim.version(), { 0, 9, 4 }) >= 0 then
+ if vim.version.ge(vim.version(), '0.10-dev') 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))