autozimu / LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.
MIT License
3.55k stars 272 forks source link

Make it an option that highlight search (hlsearch) won't be overriden by error highlight #1256

Open david0u0 opened 1 year ago

david0u0 commented 1 year ago

Is your feature request related to a problem? Please describe.

As shown in the image, the highlight color of my search result my_inst (yellow) is overriden by the error highlight (red) 圖片

It would be great to let the user configure weather they want hlsearch or error to have higher priority

Describe the solution you'd like

Introduce a new variable, e.g. g:LanguageClient_HighlightPriority = ['hls', 'error'], so that user can configure the priority

Describe alternatives you've considered

Maybe the option to disable error highlight completely?

Thanks for reading :)