diff options
| -rw-r--r-- | lua/mason-lspconfig/health.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/mason-lspconfig/health.lua b/lua/mason-lspconfig/health.lua index c36f8eb..728b651 100644 --- a/lua/mason-lspconfig/health.lua +++ b/lua/mason-lspconfig/health.lua @@ -8,6 +8,13 @@ function M.check() else vim.health.ok "Neovim v0.11" end + + local ok, mason_version = pcall(require, "mason.version") + if ok and mason_version.MAJOR_VERSION == 2 then + vim.health.ok "mason.nvim v2" + else + vim.health.error "mason.nvim v2 is required." + end end return M |
