mirror of https://github.com/folke/lazy.nvim.git
fix: prepend package path to packpath if package.reset=false
This commit is contained in:
parent
041a716f4e
commit
5eb2622a4e
|
@ -75,6 +75,8 @@ function M.setup(spec, opts)
|
||||||
|
|
||||||
if M.options.package.reset then
|
if M.options.package.reset then
|
||||||
vim.go.packpath = M.options.package.path
|
vim.go.packpath = M.options.package.path
|
||||||
|
else
|
||||||
|
vim.opt.packpath:prepend(M.options.package.path)
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("User", {
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
|
Loading…
Reference in New Issue