mirror of https://github.com/folke/lazy.nvim.git
fix(plugin): make .lazy.lua work again
This commit is contained in:
parent
c02268ac6e
commit
b4a5a1209e
|
@ -167,7 +167,7 @@ function Spec:import(spec)
|
||||||
return a.modname < b.modname
|
return a.modname < b.modname
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
modspecs = { modname = import_name, load = spec.import }
|
modspecs = { { modname = import_name, load = spec.import } }
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, modspec in ipairs(modspecs) do
|
for _, modspec in ipairs(modspecs) do
|
||||||
|
@ -203,7 +203,7 @@ function Spec:import(spec)
|
||||||
Util.track()
|
Util.track()
|
||||||
end
|
end
|
||||||
if imported == 0 then
|
if imported == 0 then
|
||||||
self:error("No specs found for module " .. spec.import)
|
self:error("No specs found for module " .. vim.inspect(spec.import))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue