From c59c05c7a80693fda369ccab572f8eaca50a1b4f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 4 Jan 2023 23:16:55 +0100 Subject: [PATCH] fix(loader): run plugin config before sourcing runtime --- .gitignore | 2 ++ lua/lazy/core/loader.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e62ab00..cc5457a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ doc/tags debug .repro foo.* +*.log +data diff --git a/lua/lazy/core/loader.lua b/lua/lazy/core/loader.lua index c2bc844..aaffe94 100644 --- a/lua/lazy/core/loader.lua +++ b/lua/lazy/core/loader.lua @@ -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)