fix: prepend package path to packpath if package.reset=false

This commit is contained in:
Folke Lemaitre 2022-12-01 14:13:40 +01:00
parent 041a716f4e
commit 5eb2622a4e
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 0 deletions

View File

@ -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", {