Add LSP highlights for NVIM 0.6

See here: a5bbb932f9
This commit is contained in:
Adriano Di Luzio
2021-12-02 16:50:45 +01:00
parent ab03cdf750
commit e14671cf4f

View File

@@ -539,14 +539,22 @@ hi link pythonDoctest Comment
hi link pythonDoctest2 Comment hi link pythonDoctest2 Comment
" Nvim LSP " Nvim LSP
call Highlight('LspDiagnosticsDefaultError', { 'fg': { 'cterm': 197, 'gui': '#fd2c40' }}) call Highlight('DiagnosticError', { 'fg': { 'cterm': 197, 'gui': '#fd2c40' }})
call Highlight('LspDiagnosticsDefaultWarning', { 'fg': s:yellow, 'bg': s:none, 'style': s:none }) hi link LspDiagnosticsDefaultError DiagnosticError
call Highlight('LspDiagnosticsDefaultInformation', { 'fg': s:white, 'bg': s:none, 'style': s:none }) call Highlight('DiagnosticWarn', { 'fg': s:yellow, 'bg': s:none, 'style': s:none })
call Highlight('LspDiagnosticsDefaultHint', { 'fg': s:light_grey, 'bg': s:none, 'style': s:none }) hi link LspDiagnosticsDefaultWarning DiagnosticWarn
call Highlight('LspDiagnosticsUnderlineError', { 'fg': s:none, 'bg': s:none, 'style': s:underline }) call Highlight('DiagnosticInfo', { 'fg': s:white, 'bg': s:none, 'style': s:none })
call Highlight('LspDiagnosticsUnderlineWarning', { 'fg': s:none, 'bg': s:none, 'style': s:underline }) hi link LspDiagnosticsDefaultInfo DiagnosticInfo
call Highlight('LspDiagnosticsUnderlineInformation', { 'fg': s:none, 'bg': s:none, 'style': s:underline }) call Highlight('DiagnosticHint', { 'fg': s:light_grey, 'bg': s:none, 'style': s:none })
call Highlight('LspDiagnosticsUnderlineHint', { 'fg': s:none, 'bg': s:none, 'style': s:underline }) hi link LspDiagnosticsDefaultHint DiagnosticHint
call Highlight('DiagnosticUnderlineError', { 'fg': s:none, 'bg': s:none, 'style': s:underline })
hi link LspDiagnosticsUnderlineError DiagnosticUnderlineError
call Highlight('DiagnosticUnderlineWarn', { 'fg': s:none, 'bg': s:none, 'style': s:underline })
hi link LspDiagnosticsUnderlineWarning DiagnosticUnderlineWarn
call Highlight('DiagnosticUnderlineInfo', { 'fg': s:none, 'bg': s:none, 'style': s:underline })
hi link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo
call Highlight('DiagnosticUnderlineHint', { 'fg': s:none, 'bg': s:none, 'style': s:underline })
hi link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint
" Must be at the end, because of ctermbg=234 bug. " Must be at the end, because of ctermbg=234 bug.
" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ " https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ