nvim: yolokai: Update syntax highlighting

We want information messages to have orange color and warning messages
to have pink color.

Also fix the syntax highlighting for LspDiagnostics. While migrating
away from diagnostic-nvim, we did not specify the syntax highlight for
virtual text correctly, which resulted in them having just plain white
text on black background.
This commit is contained in:
Sanchayan Maity 2021-01-04 17:03:42 +05:30
parent 6929c30e2d
commit 494f0706bb

View file

@ -112,8 +112,8 @@ local highlight_groups = {
helpHyperTextJump = 'Underlined', helpHyperTextJump = 'Underlined',
helpSpecial = 'Function' , helpSpecial = 'Function' ,
Hint = {bg=lightblack3, fg=white, style='bold' }, Hint = {bg=lightblack3, fg=white, style='bold' },
Info = {bg=pink, fg=black, style='bold' }, Info = {bg=orange, fg=black, style='bold' },
Warning = {bg=orange, fg=black, style='bold' }, Warning = {bg=pink, fg=black, style='bold' },
--[[ 4.2... Editor UI ]] --[[ 4.2... Editor UI ]]
--[[ 4.2.1. Status Line]] --[[ 4.2.1. Status Line]]
@ -175,37 +175,36 @@ local highlight_groups = {
--[[ 4.2.10. Messages]] --[[ 4.2.10. Messages]]
ErrorMsg = {bg=black, fg=red, style=NONE }, ErrorMsg = {bg=black, fg=red, style=NONE },
HintMsg = {bg=black, fg=purple, style='bold' }, HintMsg = {bg=black, fg=purple, style='bold' },
InfoMsg = {bg=black, fg=pink, style='bold' }, InfoMsg = {bg=black, fg=orange, style='bold' },
ModeMsg = {bg=black, fg=yellow, style=NONE }, ModeMsg = {bg=black, fg=yellow, style=NONE },
WarningMsg = {bg=black, fg=red, style='bold' }, WarningMsg = {bg=black, fg=pink, style='bold' },
Question = {bg=black, fg=yellow, style='underline'}, Question = {bg=black, fg=yellow, style='underline'},
--[[ 4.2.11. LSP ]] --[[ 4.2.11. LSP ]]
LspDiagnosticsDefaultError = 'Error' , LspDiagnosticsDefaultError = 'ErrorMsg' ,
LspDiagnosticsDefaultWarning = 'WarningMsg' ,
LspDiagnosticsDefaultInformation = 'InfoMsg' ,
LspDiagnosticsDefaultHint = 'HintMsg' ,
LspDiagnosticsFloatingError = 'ErrorMsg' , LspDiagnosticsFloatingError = 'ErrorMsg' ,
LspDiagnosticsSignError = 'ErrorMsg',
LspDiagnosticsDefaultWarning = 'Warning' ,
LspDiagnosticsFloatingWarning = 'WarningMsg' , LspDiagnosticsFloatingWarning = 'WarningMsg' ,
LspDiagnosticsSignWarning = 'WarningMsg', LspDiagnosticsFloatingInformation = 'InfoMsg' ,
LspDiagnosticsDefaultHint = 'Hint' ,
LspDiagnosticsFloatingHint = 'HintMsg' , LspDiagnosticsFloatingHint = 'HintMsg' ,
LspDiagnosticsSignError = 'ErrorMsg' ,
LspDiagnosticsSignWarning = 'WarningMsg' ,
LspDiagnosticsSignInformation = 'InfoMsg' ,
LspDiagnosticsSignHint = 'HintMsg' , LspDiagnosticsSignHint = 'HintMsg' ,
LspDiagnosticsDefaultInformation = 'Info' ,
LspDiagnosticsFloatingInformation = 'InfoMsg',
LspDiagnosticsSignInformation = 'InfoMsg',
LspDiagnosticsUnderlineError = {style={'undercurl', color=red }}, LspDiagnosticsUnderlineError = {style={'undercurl', color=red }},
LspDiagnosticsUnderlineWarning = {style={'undercurl', color=pink }},
LspDiagnosticsUnderlineInformation = {style={'undercurl', color=orange }},
LspDiagnosticsUnderlineHint = {style={'undercurl', color=purple }}, LspDiagnosticsUnderlineHint = {style={'undercurl', color=purple }},
LspDiagnosticsUnderlineInformation = {style={'undercurl', color=pink}},
LspDiagnosticsUnderlineWarning = {style={'undercurl', color=red}},
LspDiagnosticsVirtualTextError = {color=red}, LspDiagnosticsVirtualTextError = 'ErrorMsg' ,
LspDiagnosticsVirtualTextHint = {color=purple}, LspDiagnosticsVirtualTextWarning = 'WarningMsg' ,
LspDiagnosticsVirtualTextInformation = {color=pink}, LspDiagnosticsVirtualTextInformation = 'InfoMsg' ,
LspDiagnosticsVirtualTextWarning = {color=red}, LspDiagnosticsVirtualTextHint = 'HintMsg' ,
--[[ 4.2.12. Cursor ]] --[[ 4.2.12. Cursor ]]
Cursor = {bg=white, fg=black, style='inverse'}, Cursor = {bg=white, fg=black, style='inverse'},