srcery-colors / srcery-vim

Srcery is a dark color scheme with clearly defined contrasting colors and a slightly earthy tone.
https://srcery.sh
Other
824 stars 60 forks source link

Rust operator highlight forces background color #112

Closed flaamjab closed 9 months ago

flaamjab commented 9 months ago

I use treesitter-context with neovim and have noticed that the background color of operator characters in the context box is wrong:

image

Rust.vim over at neovim repository links rustOperator to Operator which is itself linked to Normal here, which has background color set by default. So that probably explains why Rust operators in particular are colored incorrectly. I'm not sure if any other language has a similar issue, C and C++ seem to be alright.

Simply adding something like hi! link rustOperator SrceryWhite in rust.vim makes it all look good.

So anyway, would be nice to have it tweaked. Cheers.

MindTooth commented 9 months ago

Hi,

Maybe the rustOperator should be set to Operator. @roosta any recollection of this?

roosta commented 9 months ago

Operator already links to Normal, so I don't think that would solve the issue. I'm thinking linking Operator to SrceryBrightWhite. It gets overridden in some languages but as a general rule its supposed to be white like normal. There doesn't seem to be any reason to set the background color for the operator, and the srcery_bg option works fine as far as I can tell with that change.