Skip to content

Commit 2ef44e2

Browse files
committed
fix(loader): revert change that loaded /plugin after config. Fixes #328
1 parent e89e938 commit 2ef44e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/loader.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ function M._load(plugin, reason)
217217
end, "Failed to load deps for " .. plugin.name)
218218
end
219219

220+
M.packadd(plugin.dir)
220221
if plugin.config then
221222
M.config(plugin)
222223
end
223-
M.packadd(plugin.dir)
224224

225225
plugin._.loaded.time = Util.track().time
226226
table.remove(M.loading)

0 commit comments

Comments
 (0)