aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-01-03 10:42:18 +0100
committerWilliam Boman <william@redwill.se>2022-01-03 10:42:18 +0100
commit63f6b21d2f04069f68a32604feae6bcd352b90fb (patch)
tree119ed57c7f828c22efb43f8d37efcf4ae0273459 /lua
parentleverage PATH for locating local executables (#283) (diff)
downloadmason-63f6b21d2f04069f68a32604feae6bcd352b90fb.tar
mason-63f6b21d2f04069f68a32604feae6bcd352b90fb.tar.gz
mason-63f6b21d2f04069f68a32604feae6bcd352b90fb.tar.bz2
mason-63f6b21d2f04069f68a32604feae6bcd352b90fb.tar.lz
mason-63f6b21d2f04069f68a32604feae6bcd352b90fb.tar.xz
mason-63f6b21d2f04069f68a32604feae6bcd352b90fb.tar.zst
mason-63f6b21d2f04069f68a32604feae6bcd352b90fb.zip
health: add neovim version check
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/health/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/health/init.lua b/lua/nvim-lsp-installer/health/init.lua
index 051a3830..4e4192f0 100644
--- a/lua/nvim-lsp-installer/health/init.lua
+++ b/lua/nvim-lsp-installer/health/init.lua
@@ -112,6 +112,12 @@ end
function M.check()
health.report_start "nvim-lsp-installer report"
+ if vim.fn.has "nvim-0.6.0" == 1 then
+ health.report_ok "neovim version >= 0.6.0"
+ else
+ health.report_error "neovim version < 0.6.0"
+ end
+
local completed = 0
local check = mk_healthcheck(vim.schedule_wrap(