Skip to content

Conversation

@simonmandlik
Copy link
Collaborator

Closes #3213

@simonmandlik simonmandlik force-pushed the feat/include_root_option branch from 8db86ab to 3d23432 Compare November 15, 2025 20:17
Type: `string | number | fun(): number|string`
Default: `-1`

*nvim-tree.view.width.include_root*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you think of anything else that could be added in the future? I am asking because we could have an enum nvim-tree.view.width.include instead of multiple include_*.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. As things stand, with include_root = true all lines in the buffer will be considered.

We could start excluding something, e.g. use only either folders/files to compute the width, but it is becoming very niche and not overly useful IMHO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: take root folder into account when computing width in View.grow

3 participants