Skip to content

Commit

Permalink
fix: prepend package path to packpath if package.reset=false
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 2, 2022
1 parent 041a716 commit 5eb2622
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit 5eb2622

Please sign in to comment.