fix(rtp): correct order of adding to rtp. Fixes #226

This commit is contained in:
Folke Lemaitre 2022-12-29 08:21:22 +01:00
parent 72ab3e2933
commit 4e3a973f85
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 2 deletions

View file

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