Skip to content

Add unique highlighting group to current viewing buffer/file #2925

Answered by alex-courtis
ugoa asked this question in Q&A
Discussion options

You must be logged in to vote

It's possible to add those highlight groups, a pull request would be most gratefully appreciated.

However, I don't think it is really necessary: the opened file is indicated by the cursorline, which overrides the opened files highlight.

It looks like you've got &cursorline and &number disabled. Turn one or both on and then change their highlight:

setup:

  ---
  view = {
    number = true,
    cursorline = true,
    ---

highlight:

:hi NvimTreeCursorLine guifg=blue
:hi NvimTreeCursorLineNr guifg=red

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ugoa
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #2923 on September 23, 2024 03:36.