fix(plugin): make .lazy.lua work again

This commit is contained in:
Folke Lemaitre 2024-07-24 07:23:36 +02:00
parent c02268ac6e
commit b4a5a1209e
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ function Spec:import(spec)
return a.modname < b.modname
end)
else
modspecs = { modname = import_name, load = spec.import }
modspecs = { { modname = import_name, load = spec.import } }
end
for _, modspec in ipairs(modspecs) do
@ -203,7 +203,7 @@ function Spec:import(spec)
Util.track()
end
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