Skip to content

Use different highlight groups for folder arrows and indent markers #2316

Closed
@anna328p

Description

@anna328p

Is this a question?
No

Can this functionality be implemented utilising API?
No

Is your feature request related to a problem? Please describe.
Currently indent markers and folder arrows are both rendered as part of line padding, and have the highlight group NvimTreeIndentMarker (code here). There is no way to make the indent lines and the folder arrows different colors. This is especially relevant when inline_arrows = true.

Describe the solution you'd like
A change to the renderer that displays padding and indent markers using different highlight groups so that they can be configured separately. For backwards compatibility, the arrows' highlight group could be linked to NvimTreeIndentMarker by default.

Describe alternatives you've considered
Tried messing around with configs for a while. Also tried displaying arrows as folder icons; however this breaks inline arrows.

Additional context

The arrows and indent markers are the same color here:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedQOLQuality Of Life Improvementfeature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions