mirror of
https://github.com/sadan4/nvim.git
synced 2025-06-11 06:13:01 -04:00
half of this is very broken
but it only breaks every two years so who cares
This commit is contained in:
parent
dfd9f2d265
commit
6587ce62cc
7 changed files with 259 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue