Skip to content
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

Is it possible to configure the color of the type hints? #365

Closed
maxcountryman opened this issue Aug 30, 2020 · 3 comments
Closed

Is it possible to configure the color of the type hints? #365

maxcountryman opened this issue Aug 30, 2020 · 3 comments

Comments

@maxcountryman
Copy link

I'm not sure what the correct term for these hints is, but I'm referring to the right-hand side of lines 14 and 15 pictured below.

This is a really handy feature and I find it quite useful, however the fact that it's rendered in a very visible dark blue it can be distracting when there are many chained method calls.

Is it possible to configure a color override for this?

Screen Shot 2020-08-30 at 12 30 19 PM

@fannheyward
Copy link
Owner

It's CocRustChainingHint, you can customize it.

@maxcountryman
Copy link
Author

It's CocRustChainingHint, you can customize it.

Are there any examples of using this to customize the color?

@imjasonmiller
Copy link

@maxcountryman you can view all available colors via :hi.

I've edited a couple of the colors like so in init.vim:

" Change highlight colors for coc
hi CocErrorSign         guifg=#E06C75
hi CocWarningSign       guifg=#E5C07B
hi CocInfoSign          guifg=#61AFEF
hi CocHintSign          guifg=#586069
hi CocRustChainingHint  guifg=#586069

With CocHintSign and CocRustChainingHint both being the colors for hints.

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

No branches or pull requests

3 participants