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

indent marker at level 0 when using `inline_arrows`

Open
#2,315 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug reproduced
Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

Is this a question?
No

Can this functionality be implemented utilising API?
Don't think so

Is your feature request related to a problem? Please describe.

When using the option nvim-tree.renderer.indent_markers.inline_arrows, there is no indent marker at level 0:

image

This is a pretty jarring inconsistency.

When inline_arrows is on, I expect a column that contains arrows to be part of an indent marker.

Describe the solution you'd like

An option to render indent markers at level 0. Optionally, only if there are any folders present.

Describe alternatives you've considered

Have played around with the existing options in many configurations, none of them fit what I'd like.

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 tracing the nvim-tree.renderer.indent_markers.inline_arrows option and the renderer entry point that handles indent markers. Check how level 0 is currently treated, then define completion as an additional level-0 marker column, optionally conditional on folders being present. Verify the behavior with inline_arrows enabled and representative trees.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.