OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.72k stars 168 forks source link

Configurable bold, italic and underline styles #829

Closed frarees closed 1 year ago

frarees commented 1 year ago

I see a default style is defined here https://github.com/OmniSharp/omnisharp-vim/blob/0b643d4564207e85d19b94180e6ab2e89e7f9c50/syntax/omnisharpdoc.vim#L19

However I'm currently using a font that doesn't render very well on italics and bold, and would like to configure how it looks. Is this possible right now?

image

frarees commented 1 year ago

I can override the definition through hi! ... 🤦 Closing.

nickspoons commented 1 year ago

Yeah exactly. It's just a syntax file so you can override it in the usual vim way. For example, to get coloured underline/double underline in vims that support it, I have a ~/.after/syntax/omnisharpdoc.vim file containing the following:

if !has('nvim') && has('patch-9.0.0007')
  " Give the active parameter a double underline colour
  hi OmniSharpActiveParameter cterm=bold,italic,underdouble ctermul=109 gui=bold,italic,underdouble guisp=#83a598
elseif !has('nvim') && has('patch-8.2.0863')
  " Give the active parameter a solid underline colour
  hi OmniSharpActiveParameter cterm=bold,italic,underline ctermul=109 gui=bold,italic,underline guisp=#83a598
else
  hi OmniSharpActiveParameter cterm=bold,italic,underline gui=bold,italic,underline guisp=#83a598
endif