Skip to content

[Feature request] New 'FernLeadingText' highlight group #461

@bluz71

Description

@bluz71

Hello @lambdalisue,

I have been experimenting with Fern visual style via these setting:

let g:fern#renderer#default#leading = ''
let g:fern#renderer#default#leaf_symbol = '*  '

However, I notice the highlighting does not look good as seen in this screenshot:

Fern_1

I want the leaf_symbol (currently *) styled in blue and collapsed_symbol / expanded_symbol and leading (indent character) in dark grey.

Currently there are two main highlight groups effecting this area: FernBranchSymbol and FernLeafSymbol. The leading text inherits its style from both of these highlight groups depending if the current line contains leaves or nodes. So the leading (indent) text sometimes is blue, other times grey. Which looks bad.

For consistency, I believe the leading text should always be styled with the same color; hence the request for a new highlight group FernLeadingText. An alternative would be to always style leading with FernBranchSymbol highlighting. That would also solve my issue.

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions