nvim-tree / nvim-tree/nvim-web-devicons

Allow setup to be run multiple times

Open
#464 0 comments 1 reaction 0 assignees View on GitHub

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:

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.