Skip to content

Commit

Permalink
fix(loader): revert change that loaded /plugin after config. Fixes #328
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 5, 2023
1 parent e89e938 commit 2ef44e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ function M._load(plugin, reason)
end, "Failed to load deps for " .. plugin.name)
end

M.packadd(plugin.dir)
if plugin.config then
M.config(plugin)
end
M.packadd(plugin.dir)

plugin._.loaded.time = Util.track().time
table.remove(M.loading)
Expand Down

0 comments on commit 2ef44e2

Please sign in to comment.