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

Feature: Allow setup to be run multiple times #464

Open
alex-courtis opened this issue May 13, 2024 · 0 comments
Open

Feature: Allow setup to be run multiple times #464

alex-courtis opened this issue May 13, 2024 · 0 comments

Comments

@alex-courtis
Copy link
Member

alex-courtis commented May 13, 2024

Fail use case:

  • nvim-tree setup called
    • nvim-web-devicons setup called with no arguments
  • nvim-web-devicons setup called with user overrides
    • NOP as setup already called

Success use case:

  • nvim-web-devicons setup called with user overrides
    • overrides applied
  • nvim-tree setup called
    • NOP as setup already called

Related:
Plugin checks first as per telescope:

https://github.com/nvim-telescope/telescope.nvim/blob/35f94f0ef32d70e3664a703cefbe71bd1456d899/lua/telescope/utils.lua#L542

README known issue

Possible solution:

  1. Add a setup argument preserve, to not override configuration, plugins call with that
  2. Always override, nvim-tree will break, cannot use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant