mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
fix(rocks): better errors / warnings when something goes wrong with luarocks
This commit is contained in:
parent
9005e8ede7
commit
7d3f69104f
11 changed files with 336 additions and 141 deletions
|
@ -33,9 +33,7 @@ function M:load_pkgs()
|
|||
if not Config.options.pkg.enabled then
|
||||
return
|
||||
end
|
||||
local have_rockspec = false
|
||||
for _, pkg in ipairs(Pkg.get()) do
|
||||
have_rockspec = have_rockspec or pkg.source == "rockspec"
|
||||
local meta, fragment = self:add(pkg.spec)
|
||||
if meta and fragment then
|
||||
meta._.pkg = pkg
|
||||
|
@ -48,12 +46,6 @@ function M:load_pkgs()
|
|||
self.pkgs[pkg.dir] = fragment.id
|
||||
end
|
||||
end
|
||||
if have_rockspec then
|
||||
local hererocks = Pkg.hererocks()
|
||||
if hererocks then
|
||||
self:add(hererocks)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--- Remove a plugin and all its fragments.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue