|
10 | 10 | let s:configuration = sonokai#get_configuration()
|
11 | 11 | let s:palette = sonokai#get_palette(s:configuration.style, s:configuration.colors_override)
|
12 | 12 | let s:path = expand('<sfile>:p') " the path of this script
|
13 |
| -let s:last_modified = 'Wed May 15 02:11:59 PM UTC 2024' |
| 13 | +let s:last_modified = 'Sat May 18 06:17:18 UTC 2024' |
14 | 14 | let g:sonokai_loaded_file_types = []
|
15 | 15 |
|
16 | 16 | if !(exists('g:colors_name') && g:colors_name ==# 'sonokai' && s:configuration.better_performance)
|
@@ -208,6 +208,7 @@ if has('nvim')
|
208 | 208 | highlight! link LspReferenceText CurrentWord
|
209 | 209 | highlight! link LspReferenceRead CurrentWord
|
210 | 210 | highlight! link LspReferenceWrite CurrentWord
|
| 211 | + highlight! link LspInlayHint InlayHints |
211 | 212 | highlight! link LspCodeLens VirtualTextInfo
|
212 | 213 | highlight! link LspCodeLensSeparator VirtualTextHint
|
213 | 214 | highlight! link LspSignatureActiveParameter Search
|
@@ -346,6 +347,11 @@ elseif s:configuration.current_word ==# 'grey background'
|
346 | 347 | else
|
347 | 348 | call sonokai#highlight('CurrentWord', s:palette.none, s:palette.none, s:configuration.current_word)
|
348 | 349 | endif
|
| 350 | +if s:configuration.inlay_hints_background ==# 'none' |
| 351 | + highlight! link InlayHints LineNr |
| 352 | +else |
| 353 | + call sonokai#highlight('InlayHints', s:palette.grey, s:palette.bg_dim) |
| 354 | +endif |
349 | 355 | " Define a color for each LSP item kind to create highlights for nvim-cmp, aerial.nvim, nvim-navic and coc.nvim
|
350 | 356 | let g:sonokai_lsp_kind_color = [
|
351 | 357 | \ ["Array", "Yellow"],
|
@@ -671,7 +677,7 @@ highlight! link CocPumMenu Pmenu
|
671 | 677 | highlight! link CocMenuSel PmenuSel
|
672 | 678 | highlight! link CocDisabled Grey
|
673 | 679 | highlight! link CocSnippetVisual DiffAdd
|
674 |
| -highlight! link CocInlayHint LineNr |
| 680 | +highlight! link CocInlayHint InlayHints |
675 | 681 | highlight! link CocNotificationProgress Green
|
676 | 682 | highlight! link CocNotificationButton PmenuSel
|
677 | 683 | highlight! link CocSemClass TSType
|
@@ -732,8 +738,8 @@ highlight! link LspWarningHighlight WarningText
|
732 | 738 | highlight! link LspInformationHighlight InfoText
|
733 | 739 | highlight! link LspHintHighlight HintText
|
734 | 740 | highlight! link lspReference CurrentWord
|
735 |
| -highlight! link lspInlayHintsType LineNr |
736 |
| -highlight! link lspInlayHintsParameter LineNr |
| 741 | +highlight! link lspInlayHintsType InlayHints |
| 742 | +highlight! link lspInlayHintsParameter InlayHints |
737 | 743 | highlight! link LspSemanticType TSType
|
738 | 744 | highlight! link LspSemanticClass TSType
|
739 | 745 | highlight! link LspSemanticEnum TSType
|
@@ -762,7 +768,7 @@ highlight! link YcmErrorLine ErrorLine
|
762 | 768 | highlight! link YcmWarningLine WarningLine
|
763 | 769 | highlight! link YcmErrorSection ErrorText
|
764 | 770 | highlight! link YcmWarningSection WarningText
|
765 |
| -highlight! link YcmInlayHint LineNr |
| 771 | +highlight! link YcmInlayHint InlayHints |
766 | 772 | highlight! link YcmErrorText VirtualTextError
|
767 | 773 | highlight! link YcmWarningText VirtualTextWarning
|
768 | 774 | if !has('nvim') && has('textprop') && !exists('g:YCM_HIGHLIGHT_GROUP')
|
|
0 commit comments