feat: Support Mason 2.0.0

This commit is contained in:
Andreas Palm
2025-05-20 21:09:14 +02:00
parent 1983f353b2
commit f3b96fa221
+5
View File
@@ -42,6 +42,11 @@ function M.try_install(mason_package_name)
:if_present(
function(pkg)
if not pkg:is_installed() then
if require("mason.version").MAJOR_VERSION == 2 then
if pkg:is_installing() then
return
end
end
install_package(pkg, version)
end
end