mirror of https://github.com/folke/lazy.nvim.git
fix(loader): don't run ftdetect twice for paths already on the rtp during startup. Fixes #839
This commit is contained in:
parent
b4e520579b
commit
36a91320f9
|
@ -122,6 +122,9 @@ function M.startup()
|
||||||
Util.track({ start = "rtp plugins" })
|
Util.track({ start = "rtp plugins" })
|
||||||
for _, path in ipairs(rtp) do
|
for _, path in ipairs(rtp) do
|
||||||
if not path:find("after/?$") then
|
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)
|
M.packadd(path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue