aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-03-04 10:59:37 +0100
committerDamjan 9000 <damjan.9000@gmail.com>2024-03-04 10:59:37 +0100
commit09093d4d90edf4596316e5169198fea0be8f8b26 (patch)
tree82552dc8ebf798223a23a92ec8c2e408891e7ab7 /lua
parentde8986f7a8a6688fee64b381ec3ef4a9c347518e (diff)
parentc9122e89e3c2e19cd784642a1d0cddae258d0672 (diff)
Merge 'upstream/master' fix: checkhealth reported nvim version
Diffstat (limited to 'lua')
-rw-r--r--lua/kickstart/health.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/kickstart/health.lua b/lua/kickstart/health.lua
index 957204e..04df77b 100644
--- a/lua/kickstart/health.lua
+++ b/lua/kickstart/health.lua
@@ -6,15 +6,16 @@
--]]
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
- vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", tostring(vim.version())))
+ 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
- vim.health.ok(string.format("Neovim version is: '%s'", tostring(vim.version())))
+ 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", tostring(vim.version())))
+ vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
end
end