RRethy / base16-nvim

Neovim plugin for building a sync base16 colorscheme. Includes support for Treesitter and LSP highlight groups.
MIT License
522 stars 77 forks source link

CorsorLine somehow made Search text disappear #60

Closed jackielii closed 2 years ago

jackielii commented 2 years ago

See https://github.com/neoclide/coc.nvim/discussions/4125

I'm yet to find the proper way of solving this.

My problem is with a piece of text that's current CursorLine and also highlighted with Search group:

image

In the above screenshot, inside the red circle, it should say NewWorker that's highlighted in yellow.

The highlight group of this is CocListLine and Search. And here is the styles for these two groups:

:hi Search
Search         xxx ctermfg=0 ctermbg=11 guifg=#393939 guibg=#ffcc66
:hi CursorLine
CursorLine     xxx cterm=underline guibg=#393939
:hi CocListLine
CocListLine    xxx links to CursorLine

If I set a CocListLine group explicitly, it works:

au ColorScheme * hi CocListLine cterm=underline guibg=Grey40

It looks like this:

image

RRethy commented 2 years ago

Search for you has a forground of guifg=#393939 while cursorline has a background of guibg=#393939, that's not an issue with this plugin that's an issue with CocListLine (which this plugin doesn't touch). If anything CocListLine should be set to StatusLine not CursorLine. As you mentioned, you can set the highlight group explicitly too.