Closed nickp-real closed 1 year ago
This is a limitation with your terminal. Not all terminals support underline with a different color.
Which terminals are supported? Because I tried with both Kitty and iTerm2 (EXTREMELY popular terminals), and the above commenter tried with Alacritty and all of them behave as this issue described.
This issue should not be closed. If it's intended behaviour then this should be flagged a feature request instead, because supporting iTerm2/Alacritty/Kitty seems very basic.
Kitty at least should work, that's what I use.
Tmux might mess with things, too. If you use tmux, try to add this in your tmux config.
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
This issue should not be closed. If it's intended behaviour then this should be flagged a feature request instead
There is nothing I can do about this. I just set the highlight group. If it doesn't work, it's not supported by your terminal, or your terminal is configured wrong.
You're right!!! It IS tmux that's messing with it. If i go to a file without tmux the underline works correctly. Unfortunately adding that snippet you posted didn't help, any other ideas?
There just was a discussion about this on Reddit as well, maybe something there works for you.
In case anyone comes across this later - I managed to fix it by adding this to my tmux.conf (I'm using kitty):
set -g default-terminal "xterm-kitty"
In case anyone using alacritty with tmux, try at this to your tmux config. It fixed for me.
set -as terminal-features ",alacritty:usstyle"
or
set -as terminal-features ",$TERM:usstyle"
In case anyone using alacritty with tmux, try at this to your tmux config. It fixed for me.
set -as terminal-features ",alacritty:usstyle"
orset -as terminal-features ",$TERM:usstyle"
This worked for me but I had also had to upgrade Alacritty from version 10 to 12.
I have the same problem as you. I'm using wezterm.According this document, This config can fix this problem.
env TERM=wezterm nvim code/xxx.c
OR
Add below config to .zshrc
can fix this problem:
if [[ $TMUX != "" ]] then
export TERM="tmux-256color"
else
# export TERM="xterm-256color"
export TERM="wezterm"
fi
I have the same problem. My setup is:
Like above, I've added the line set -as terminal-features ",alacritty:usstyle"
to my .tmux.conf
. It doesn't work, so I've checked the behavior without tmux. Same problem.
If I understand @lukas-reineke correctly, the only point where it can come from by now is the color scheme, right?!? I use my own very clean and simple color scheme and I very like IndentBlankline.
Does anybody has a hint for me, what the highlighting can be to discard the horizontal underlining (or set the color of it)? I've tried some (Line number included) but nothing has worked so far. The vertical indents are working and are awesome with changing the color depending on the scope :)
If I understand @lukas-reineke correctly, the only point where it can come from by now is the color scheme, right?!?
No, this is not even related to Neovim. It is a problem with your terminal / tmux and how they are configured.
Does anybody has a hint for me, what the highlighting can be to discard the horizontal underlining
If you just don't want to display the underlines at all, you can turn off :help ibl.config.scope.show_start
and :help ibl.config.scope.show_end
@lukas-reineke -> super cool:
scope = {
enabled = true, -- 'true': Highlight only the intended indentation and the current scope by an underline.
show_start = false, -- Shows an underline on the first line of the scope.
show_end = false, -- Shows an underline on the last line of the scope.
show_exact_scope = false,
injected_languages = true,
},
Made my day <3
...happy Karneval if you are one of those Karneval-people in Germany :-P
does iterm2 support this feature?
it seem the iterm2 and wezterm don't support this feature defaultly. Can I make it done by change some configure in wezterm?
it seem the iterm2 and wezterm don't support this feature defaultly. Can I make it done by change some configure in wezterm?
Yes, see https://wezfurlong.org/wezterm/faq.html?h=underline#how-do-i-enable-undercurl-curly-underlines (It's the same issue) -- in short you need the custom terminfo file and to set TERM=wezterm
before launching nvim.
Problem
I'm using Alacritty with Tmux with onedarkpro theme.
The scope underline highlight is not the same as the highlight, using it with rainbow-delimeter.nvim.
Steps to reproduce
ibl config
onedarkpro config
Expected behavior
Highlight to be the same.
Neovim version (nvim -v)
0.9.2