bug: dependencies
of disabled plugins break optional
calculation
#1402
Labels
bug
Something isn't working
dependencies
of disabled plugins break optional
calculation
#1402
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
Arch Linux
Describe the bug
Given a plugin with some list of dependencies, if the plugin is disabled all of the dependencies should also be disabled if they aren't specified anywhere else.
Similarly if I have a plugin with the
optional = true
key set it should also be ignored unless the plugin is specified explicitly somewhere.If I have a plugin defined as
optional
and also defined as a dependency to a plugin that is disabled the plugin should not be enabled.My guess is the calculation of
optional
is happening before filtering out plugin specs for disabled plugins which breaks the behavior ofoptional
.Steps To Reproduce
nvim -u repro.lua
, run the minimal config below:Lazy
, open lazy and see thatnvim-cmp
is not disabledExpected Behavior
Plugins listed as dependencies of disabled plugins shouldn't trigger
optional
plugin specs to be enabled. Since at the time of calculation it is not valid.Repro
The text was updated successfully, but these errors were encountered: