wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 263 forks source link

Disabling a plugin also disables all of its dependencies, even if an enabled plugin has the same dependency #1251

Open wallefan opened 11 months ago

wallefan commented 11 months ago

Steps to reproduce

use {'somebody/plugin1', requires={'someonelse/dependency'}, disable=true}
use {'somebody/plugin2', requires={'someonelse/dependency'}}

Actual behaviour

someonelse/dependency is not loaded (does not appear in packer_compiled.vim)

Expected behaviour

it should be, since plugin2 depends on it Of note is that if the order of the above two lines is reversed and the disabled plugin appears second, someonelse/dependency will load

Let me know if you need any other information from me.