semshi icon indicating copy to clipboard operation
semshi copied to clipboard

Black keyword when using termguicolors options in some terminal.

Open jdhao opened this issue 4 years ago • 2 comments

I am using this plugin to add more syntax highlight to my Python code. I have found that there are weird colors when using this plugin using zoc terminal. But when using semshi on mintty, I find no such issue. On both mintty and zoc, I have set TERM variable to xterm-256color.

I have found that it has something to do with termguicolor option together with semshi. The following config is the minimal config to reproduce the problem:

set runtimepath+=/path/to/semshi
set termguicolors

image image

You can see that os is almost black and hardly distinguishable from the terminal background color.

However, when we use set notermguicolors, there is no issue:

image image

I am not sure what is the root cause of this issue, but termguicolors option works perfectly fine in zoc terminal without the presence of plugin semshi.

jdhao avatar Mar 28 '20 09:03 jdhao

What do the following highlight groups read?

hi semshiGlobal
hi semshiImported

wookayin avatar Mar 29 '20 07:03 wookayin

@wookayin hi semshiGlobal shows:

semshiGlobal ctermfg=214 guifg=#ffaf00

hi semshiImported show:

semshiImported cterm=bold ctermfg=214 gui=bold guifg=#ffaf00

jdhao avatar Mar 31 '20 02:03 jdhao