nvim-tree / nvim-tree/nvim-web-devicons
Allow setup to be run multiple times
Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 2.7k
- Forks
- 239
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 3
Description
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:
Possible solution:
- Add a setup argument preserve, to not override configuration, plugins call with that
- Always override, nvim-tree will break, cannot use
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README's known issue, the setup behavior described in the fail and success use cases, and the linked telescope/utils.lua reference. Determine how repeated setup calls should preserve or apply overrides, then verify that both call orders produce the stated outcomes without breaking nvim-tree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100