From c7122d64cdf16766433588486adcee67571de6d0 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 29 Dec 2022 10:51:25 +0100 Subject: [PATCH] fix(loader): temporary fix for Vimtex and others. See #230 --- lua/lazy/core/loader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/loader.lua b/lua/lazy/core/loader.lua index b17eac0..3594114 100644 --- a/lua/lazy/core/loader.lua +++ b/lua/lazy/core/loader.lua @@ -172,7 +172,7 @@ function M._load(plugin, reason) Util.track({ plugin = plugin.name, start = reason.start }) Handler.disable(plugin) - vim.opt.runtimepath:append(plugin.dir) + vim.opt.runtimepath:prepend(plugin.dir) local after = plugin.dir .. "/after" if vim.loop.fs_stat(after) then vim.opt.runtimepath:append(after)