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

An option to control weather change root_folder when root_folder be clicked.

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

Nobody has claimed this yet.

feature request PR please QOL
Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

Discussed in https://github.com/nvim-tree/nvim-tree.lua/discussions/2697

Originally posted by Sologala March 8, 2024
Is there any configrationes to disable the response of root_folder's clicking?

I just set renderer.root_folder_label = false to unrender the root_folder in tree view.
image

But that is not what i want. I want that that tree show the current root_folder but it will not respond to any operation.

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 linked discussion at github.com/nvim-tree/nvim-tree.lua/discussions/2697 and trace the root-folder click handling in the plugin. Done means the current root folder remains visible while its click no longer triggers the requested operation, with behavior controlled by a configuration option.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.