fix(loader): source filetype.lua before plugins. Fixes #35

This commit is contained in:
Folke Lemaitre 2022-12-20 20:32:37 +01:00
parent 9d12cdcc06
commit ffcd0ab7bb
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 8 additions and 0 deletions

View file

@ -49,6 +49,13 @@ function M.startup()
local rtp = vim.opt.rtp:get()
Util.track({ start = "filetype" })
local ft = vim.env.VIMRUNTIME .. "/filetype.lua"
Util.try(function()
vim.cmd("silent source " .. ft)
end, "Failed to source `" .. ft .. "`")
Util.track()
-- load plugins from rtp, excluding after
Util.track({ start = "rtp plugins" })
for _, path in ipairs(rtp) do