fix(loader): revert change that loaded /plugin after config. Fixes #328

This commit is contained in:
Folke Lemaitre 2023-01-05 19:43:47 +01:00
parent e89e938991
commit 2ef44e2dee
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -217,10 +217,10 @@ function M._load(plugin, reason)
end, "Failed to load deps for " .. plugin.name) end, "Failed to load deps for " .. plugin.name)
end end
M.packadd(plugin.dir)
if plugin.config then if plugin.config then
M.config(plugin) M.config(plugin)
end end
M.packadd(plugin.dir)
plugin._.loaded.time = Util.track().time plugin._.loaded.time = Util.track().time
table.remove(M.loading) table.remove(M.loading)