Fix bug when sourcing package in after/plugin

This commit is contained in:
Josh Weingarden 2025-07-21 19:48:47 -04:00
parent 6c3bda4aca
commit 1da2bd10e8

View file

@ -143,6 +143,10 @@ function M.startup()
-- 4. load after plugins
Util.track({ start = "after" })
-- Set init_done here so plugins loaded afterwards know that
-- they are not able to add to init anymore
M.init_done = true
Util.track()
for _, path in
ipairs(vim.opt.rtp:get() --[[@as string[] ]])
do
@ -151,10 +155,6 @@ function M.startup()
end
end
Util.track()
M.init_done = true
Util.track()
end
function M.get_start_plugins()