fix(loader): temporary fix for Vimtex and others. See #230

This commit is contained in:
Folke Lemaitre 2022-12-29 10:51:25 +01:00
parent 044e28bf8b
commit c7122d64cd
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ function M._load(plugin, reason)
Util.track({ plugin = plugin.name, start = reason.start }) Util.track({ plugin = plugin.name, start = reason.start })
Handler.disable(plugin) Handler.disable(plugin)
vim.opt.runtimepath:append(plugin.dir) vim.opt.runtimepath:prepend(plugin.dir)
local after = plugin.dir .. "/after" local after = plugin.dir .. "/after"
if vim.loop.fs_stat(after) then if vim.loop.fs_stat(after) then
vim.opt.runtimepath:append(after) vim.opt.runtimepath:append(after)