mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Refactor mason ensure_installed
This commit is contained in:
parent
12818a6cb4
commit
3310c32f1a
1 changed files with 4 additions and 6 deletions
|
|
@ -286,14 +286,12 @@ return {
|
|||
end, 100)
|
||||
end)
|
||||
|
||||
mr.refresh(function()
|
||||
for _, tool in ipairs(opts.ensure_installed) do
|
||||
for _, tool in ipairs(opts.ensure_installed) do
|
||||
if not mr.is_installed(tool) then
|
||||
local p = mr.get_package(tool)
|
||||
if not p:is_installed() then
|
||||
p:install()
|
||||
end
|
||||
p:install()
|
||||
end
|
||||
end)
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue