Skip to content

Commit 36a9132

Browse files
committed
fix(loader): don't run ftdetect twice for paths already on the rtp during startup. Fixes #839
1 parent b4e5205 commit 36a9132

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/lazy/core/loader.lua

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ function M.startup()
122122
Util.track({ start = "rtp plugins" })
123123
for _, path in ipairs(rtp) do
124124
if not path:find("after/?$") then
125+
-- these paths don't will already have their ftdetect ran,
126+
-- by sourcing filetype.lua above, so skip them
127+
M.did_ftdetect[path] = true
125128
M.packadd(path)
126129
end
127130
end

0 commit comments

Comments
 (0)