Skip to content

Commit

Permalink
fix(loader): run plugin config before sourcing runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 4, 2023
1 parent 457f0bb commit c59c05c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ doc/tags
debug
.repro
foo.*
*.log
data
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 c59c05c

Please sign in to comment.