mirror of
https://github.com/sadan4/nvim.git
synced 2025-06-07 12:23:02 -04:00
remove stupid mason thing
This commit is contained in:
parent
1c35a7b2fa
commit
00a0f85ee8
1 changed files with 15 additions and 15 deletions
|
@ -1,15 +1,15 @@
|
|||
local pkgs = {
|
||||
"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)
|
||||
-- local pkgs = {
|
||||
-- "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
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue