fix(loader): run plugin config before sourcing runtime

This commit is contained in:
Folke Lemaitre 2023-01-04 23:16:55 +01:00
parent 457f0bb7ce
commit c59c05c7a8
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@ doc/tags
debug
.repro
foo.*
*.log
data

View File

@ -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)