diff options
| author | Damjan 9000 <damjan.9000@gmail.com> | 2024-03-04 01:32:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 19:32:06 -0500 |
| commit | 461f2a500eaefec0a96954a2a2d6035aa94f98a9 (patch) | |
| tree | 984daa7c29a08825a583a0d306ebac20a2a85866 | |
| parent | 099fcf2592d4fb20c83220e7d8389bd89e5139d9 (diff) | |
| download | dots-461f2a500eaefec0a96954a2a2d6035aa94f98a9.tar.gz | |
fix: checkhealth reported nvim version (#685)
| -rw-r--r-- | nvim/lua/kickstart/health.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nvim/lua/kickstart/health.lua b/nvim/lua/kickstart/health.lua index 957204e..04df77b 100644 --- a/nvim/lua/kickstart/health.lua +++ b/nvim/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 |