Skip to content

chore(colors): Set highlight links for NvimTreeStatusLine #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

sindrets
Copy link
Contributor

@sindrets sindrets commented Apr 20, 2021

This sets some default highlight links for the new NvimTreeStatusLine highlight groups so that vim doesn't fill the statusline with carrots.

Example with minimal rc:

Before:
2021-04-20-234738_maim

After:
2021-04-20-234839_maim

fixes #332

@bandithijo
Copy link
Contributor

Nice catch!

This is the standard behaviour of Vim.
If StatusLine and StatusLineNC have the same highlighting, the program will use the caret character (^) in the status line of the current window (in order to highlight it).

:help hl-StatusLineNC
---------------------

Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line
of the current window.

Before this fix PR,

:verbose hi NvimTreeStatusLine
NvimTreeStatusLine xxx cleared
:verbose hi NvimTreeStatusLineNC
NvimTreeStatusLineNC xxx cleared

Both of them have cleared which are same.

I have manually solved with,

hi link NvimTreeStatusLine   StatusLine
hi link NvimTreeStatuslineNC StatusLineNC

But your solution is better.
Thank you 😄

@kyazdani42 kyazdani42 merged commit 96d8e20 into nvim-tree:master Apr 21, 2021
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
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.

Statusline not behaving properly
3 participants