diff options
| author | Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com> | 2024-07-22 02:35:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-21 20:35:07 -0400 |
| commit | 892e70aa76f2696c91f389727ce1942275106824 (patch) | |
| tree | 9927ce1b97cbfb9edf2cc29beaf400503a3387e7 /nvim/lua | |
| parent | f8601c734484dbf593c75db0c55d632175427553 (diff) | |
| download | dots-892e70aa76f2696c91f389727ce1942275106824.tar.gz | |
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 'nvim/lua')
| -rw-r--r-- | nvim/lua/kickstart/health.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nvim/lua/kickstart/health.lua b/nvim/lua/kickstart/health.lua index 04df77b..b59d086 100644 --- a/nvim/lua/kickstart/health.lua +++ b/nvim/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)) |