remove stupid mason thing

This commit is contained in:
sadan 2025-03-26 22:20:53 +00:00
parent 1c35a7b2fa
commit 00a0f85ee8
No known key found for this signature in database

View file

@ -1,15 +1,15 @@
local pkgs = { -- local pkgs = {
"jdtls", -- "jdtls",
"yaml-language-server", -- "yaml-language-server",
} -- }
local reg = require("mason-registry") -- local reg = require("mason-registry")
for _, pname in ipairs(pkgs) do -- for _, pname in ipairs(pkgs) do
local pkg = reg.get_package(pname) -- local pkg = reg.get_package(pname)
if not pkg:is_installed() then -- if not pkg:is_installed() then
print(string.format("[masonDownload.lua]: %s is not installed. Installing.", pname)) -- print(string.format("[masonDownload.lua]: %s is not installed. Installing.", pname))
local handle = pkg:install(nil) -- local handle = pkg:install(nil)
--while handle.state ~= "CLOSED" do -- --while handle.state ~= "CLOSED" do
-- print(handle.stdout) -- -- print(handle.stdout)
-- end -- -- end
end -- end
end -- end