Skip to content

Commit 5eb2622

Browse files
committed
fix: prepend package path to packpath if package.reset=false
1 parent 041a716 commit 5eb2622

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/lazy/core/config.lua

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ function M.setup(spec, opts)
7575

7676
if M.options.package.reset then
7777
vim.go.packpath = M.options.package.path
78+
else
79+
vim.opt.packpath:prepend(M.options.package.path)
7880
end
7981

8082
vim.api.nvim_create_autocmd("User", {

0 commit comments

Comments
 (0)