mirror of
https://github.com/sadan4/nvim.git
synced 2024-11-16 22:34:39 -05:00
17 lines
410 B
Lua
17 lines
410 B
Lua
local pkgs = {
|
|
"nixpkgs-fmt",
|
|
"jdtls",
|
|
"yaml-language-server",
|
|
}
|
|
local reg = require("mason-registry")
|
|
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
|
|
end
|
|
end
|