Skip to content

Commit

Permalink
fix(plugin): make .lazy.lua work again
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 24, 2024
1 parent c02268a commit b4a5a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b4a5a12

Please sign in to comment.