Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different kind of dependencies on the same plugin #1217

Open
j-xella opened this issue Mar 2, 2023 · 0 comments
Open

Different kind of dependencies on the same plugin #1217

j-xella opened this issue Mar 2, 2023 · 0 comments
Labels
bug v1 An issue or PR relevant to packer v2

Comments

@j-xella
Copy link

j-xella commented Mar 2, 2023

  • nvim --version:
NVIM v0.9.0-dev-1072+gf113cba3e
Build type: Release
LuaJIT 2.1.0-beta3
  • git --version:

git version 2.25.1

  • Operating system/version:

Ubuntu

  • Terminal name/version:

ssh via Putty

Steps to reproduce

use {
  'nvim-lualine/lualine.nvim',
  requires = { 'nvim-tree/nvim-web-devicons', opt = true },
  config = function() ... end
}

use {
  'glepnir/dashboard-nvim',
  event = { 'VimEnter' },
  config = function() ... end,
  requires = { 'nvim-tree/nvim-web-devicons' }
}

Then packersync etc...

Actual behaviour

dashboard fails, because devicons plugin is installed as optional by packer, and dashboard can't find it on startup .

A tactical fix is to remove the opt flag from the lualine requirements, or "use" devicons explicitly.

Expected behaviour

Multiple plugins require devicons. If at least one requires it to be always present, then this is how it should be installed, even if it is optional for some other plugins.

packer files

git st                                                                                                       
On branch master                                                                                                                         
Your branch is up to date with 'origin/master'.                                                                                          
                                                                                                                                         
nothing to commit, working tree clean                                                                                                    

git log --oneline -3                                                                                         
1d0cf98 (HEAD -> master, origin/master, origin/HEAD) Fix: Change display headline text to not indicate that all tasks are plugins (#1190)
b134cba Fix job hangs on invalid/missing commands (#1187)                                                                                
ef50f6f fix(interactive): let interactive mode work for remote clients attached to headless instances (#1113)                            
@j-xella j-xella added bug v1 An issue or PR relevant to packer v2 labels Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug v1 An issue or PR relevant to packer v2
Projects
None yet
Development

No branches or pull requests

1 participant