nvim-tree / nvim-tree/nvim-tree.lua

Multi Instance: Refactor: Split RootNode And Explorer

Open
#2,924 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.