nvim-tree / nvim-tree/nvim-tree.lua
Multi Instance: Refactor: Split RootNode And Explorer
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 8.6k
- Forks
- 639
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 2
Description
- #2255
Requires #2916
Explorer is a RootNode. Break them and store RootNode in Explorer.
get_node_at_cursor returns the root instead of fake ".."
Replace name == ".." tests with BaseNode:is(RootNode)
Change name to be consistent with DirNode
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 by reviewing the Explorer and RootNode implementations, then read the dependency in #2916 and related work in #2255. Trace get_node_at_cursor and the name == ".." checks, and inspect BaseNode:is usage. Done means Explorer stores a separate RootNode, cursor lookup returns it directly, the checks use RootNode, and name matches DirNode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100