Skip to content

Commit

Permalink
fix(loader): don't run ftdetect twice for paths already on the rtp du…
Browse files Browse the repository at this point in the history
…ring startup. Fixes #839
  • Loading branch information
folke committed May 28, 2023
1 parent b4e5205 commit 36a9132
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ function M.startup()
Util.track({ start = "rtp plugins" })
for _, path in ipairs(rtp) do
if not path:find("after/?$") then
-- these paths don't will already have their ftdetect ran,
-- by sourcing filetype.lua above, so skip them
M.did_ftdetect[path] = true
M.packadd(path)
end
end
Expand Down

0 comments on commit 36a9132

Please sign in to comment.