summaryrefslogtreecommitdiff
path: root/lua/kickstart
diff options
context:
space:
mode:
authorVladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>2024-07-22 02:35:07 +0200
committerGitHub <noreply@github.com>2024-07-21 20:35:07 -0400
commit7513ec8a7dd579957ce2d9b44e05c1da18d7d0e3 (patch)
treeeacd8b738818533f95650e64dba1e9c217dfde48 /lua/kickstart
parent07a9f446a30487439a6c922a7b4a4aa5756ee1d9 (diff)
Neovim 0.10 updates (#936)
* Neovim 0.10 updates Provide the buffer for which to enable inlay hints Co-authored-by: Matt Mirus <matt@mattmirus.com> * refactor: replace vim.loop with vim.uv * Upgrade folke/neodev (sunsetting) to folke/lazydev * Update checkhealth for 0.10 release --------- Co-authored-by: Matt Mirus <matt@mattmirus.com> Co-authored-by: mrr11k <me+github@mrr11k.dev> Co-authored-by: Seb Tomasini <sebt@qgates.com>
Diffstat (limited to 'lua/kickstart')
-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))