Open xulongwu4 opened 2 years ago
Can confirm this bug
Thanks for your report! I think this is a README bug - requires
does not currently affect load order, just ensures that dependencies get installed. transitive_opt
applies if you manually mark a plugin opt
, but I forget why we didn't make this apply to all opt
plugins...
I changed the behavior from all opt
to just manual here: https://github.com/wbthomason/packer.nvim/commit/a542f34fa050ab56515cbb513393cd03d961bb85
We can investigate reverting that change and fixing the bugs it may cause, or I can fix the docs.
Thanks for your report! I think this is a README bug -
requires
does not currently affect load order, just ensures that dependencies get installed.transitive_opt
applies if you manually mark a pluginopt
, but I forget why we didn't make this apply to allopt
plugins...
Thanks for your explanation! It will be helpful if you can include the condition where transitive_opt
is applied in README.
May or may not fit here: I have the kind of opposite problem - likely caused by this transitivie_opt
option.
require('packer').startup({function(use)
use 'wbthomason/packer.nvim'
use { 'nvim-telescope/telescope.nvim', opt = true, cmd = 'Telescope', requires = { 'nvim-lua/plenary.nvim' } }
use { 'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' } }
end})
Here plenary is inside opt/ but should be inside start/. However - when reversing the order of use statements it works as expected.
nvim --version
: NVIM v0.6.1git --version
: git version 2.34.0Steps to reproduce
This is the minimum setup for
packer.nvim
:Here I set the filetype to load
schemastore.nvim
to bejson
, soschemastore.nvim
is installed inopt
.vim-test
is a dependency of an optional plugin, so it should also go toopt/
according to theREADME
(the default value oftransitive_opt
is true.Actual behaviour
vim-test
is installed inpack/packer/start
.Expected behaviour
vim-test
should be installed inpack/packer/opt
Post the contents of
packer_compiled.vim
here