half of this is very broken

but it only breaks every two years so who cares
This commit is contained in:
sadan 2024-07-11 19:48:02 -04:00
parent dfd9f2d265
commit 6587ce62cc
No known key found for this signature in database
7 changed files with 259 additions and 11 deletions

View file

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