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

How to remove the highlights when using go references #5015

Closed
Kaiser-Yang opened this issue May 20, 2024 · 3 comments
Closed

How to remove the highlights when using go references #5015

Kaiser-Yang opened this issue May 20, 2024 · 3 comments

Comments

@Kaiser-Yang
Copy link
Contributor

Kaiser-Yang commented May 20, 2024

I find when I use go references, the window's highlight is under the cursorline which cause it is hard to see.

I wonder how can I let the cursor line under the highlight or how can I remove the highlights.

image

@Kaiser-Yang Kaiser-Yang changed the title How to remove the highlights when use go references How to remove the highlights when using go references May 20, 2024
@fannheyward
Copy link
Member

You can override with custom hi group, check :h CocList for the hi groups used.

  • CocListLine is used for current cursor line
  • CocListSearch for the matched characters, here's fill in your case

@Kaiser-Yang
Copy link
Contributor Author

You can override with custom hi group, check :h CocList for the hi groups used.

  • CocListLine is used for current cursor line
  • CocListSearch for the matched characters, here's fill in your case

Thank you a lot.

@Kaiser-Yang
Copy link
Contributor Author

Kaiser-Yang commented May 21, 2024

You can override with custom hi group, check :h CocList for the hi groups used.

  • CocListLine is used for current cursor line
  • CocListSearch for the matched characters, here's fill in your case

I add this below after my colorscheme:

highlight CocListSearch ctermfg=blue ctermbg=237

The mached words did not change:
image

And I've found that list.previewHighlightGroup in coc-settings.json can change the the matched word (fill here) in preview window.

I test CocListLine can change current line (with highlight CocListLine ctermfg=blue ctermbg=237):
image

There is what I've done in my color shceme configuration (I use vimonedark):
image

Actually, I just want the matched item be blue (fill here). Could you just help me more?

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

2 participants