mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-01 04:54:35 +02:00
refactor: refactored mason/typescript/vue support
This commit is contained in:
parent
135150307b
commit
9d999fa210
6 changed files with 70 additions and 37 deletions
|
@ -284,19 +284,15 @@ return {
|
|||
})
|
||||
end, 100)
|
||||
end)
|
||||
local function ensure_installed()
|
||||
|
||||
mr.refresh(function()
|
||||
for _, tool in ipairs(opts.ensure_installed) do
|
||||
local p = mr.get_package(tool)
|
||||
if not p:is_installed() then
|
||||
p:install()
|
||||
end
|
||||
end
|
||||
end
|
||||
if mr.refresh then
|
||||
mr.refresh(ensure_installed)
|
||||
else
|
||||
ensure_installed()
|
||||
end
|
||||
end)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue