Skip to content

Commit b4a5a12

Browse files
committed
fix(plugin): make .lazy.lua work again
1 parent c02268a commit b4a5a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/lazy/core/plugin.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function Spec:import(spec)
167167
return a.modname < b.modname
168168
end)
169169
else
170-
modspecs = { modname = import_name, load = spec.import }
170+
modspecs = { { modname = import_name, load = spec.import } }
171171
end
172172

173173
for _, modspec in ipairs(modspecs) do
@@ -203,7 +203,7 @@ function Spec:import(spec)
203203
Util.track()
204204
end
205205
if imported == 0 then
206-
self:error("No specs found for module " .. spec.import)
206+
self:error("No specs found for module " .. vim.inspect(spec.import))
207207
end
208208
end
209209

0 commit comments

Comments
 (0)