LSP finally working a decent amount
This commit is contained in:
parent
518951ec2f
commit
9c884fb841
15 changed files with 489 additions and 112 deletions
12
lua/util.lua
12
lua/util.lua
|
@ -34,17 +34,5 @@ function M.spread(template)
|
|||
end
|
||||
end
|
||||
|
||||
function M.ensure_installed_mason(items)
|
||||
local registry = require 'mason-registry'
|
||||
for _, item in ipairs(items) do
|
||||
if not registry.is_installed(item) then
|
||||
if registry.has_package(item) then
|
||||
registry.get_package(item).install()
|
||||
end
|
||||
end
|
||||
end
|
||||
registry.refresh()
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue