From 5eb2622a4e4e52bed94b5c8ae48b83ccfab0098d Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 1 Dec 2022 14:13:40 +0100 Subject: [PATCH] fix: prepend package path to packpath if package.reset=false --- lua/lazy/core/config.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index 05bb89bb..7b5e48b4 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -75,6 +75,8 @@ function M.setup(spec, opts) if M.options.package.reset then vim.go.packpath = M.options.package.path + else + vim.opt.packpath:prepend(M.options.package.path) end vim.api.nvim_create_autocmd("User", {