Add highlighting of the language server

This commit is contained in:
Iron_E 2020-06-23 23:00:44 -04:00
parent a582a162e9
commit 2248d49eb8
No known key found for this signature in database
GPG Key ID: B0B37DE7EDC2335F
1 changed files with 19 additions and 5 deletions

View File

@ -76,7 +76,6 @@ local gray_darker = {'#505050', 244, 'gray'}
local gray_light = {'#c0c0c0', 251, 'gray'} local gray_light = {'#c0c0c0', 251, 'gray'}
local white = {'#ffffff', 15, 'white'} local white = {'#ffffff', 15, 'white'}
local brown_light = {'#fca070', 178, 'darkyellow'}
local tan = {'#f4c069', 180, 'darkyellow'} local tan = {'#f4c069', 180, 'darkyellow'}
local red = {'#ee4a59', 196, 'red'} local red = {'#ee4a59', 196, 'red'}
@ -104,7 +103,6 @@ local pink = {'#ffa6ff', 162, 'magenta'}
local pink_light = {'#ffb7b7', 38, 'white'} local pink_light = {'#ffb7b7', 38, 'white'}
local purple = {'#cf55f0', 129, 'magenta'} local purple = {'#cf55f0', 129, 'magenta'}
local purple_light = {'#af60af', 63, 'magenta'} local purple_light = {'#af60af', 63, 'magenta'}
local purple_dark = {'#c700ff', 38, 'darkmagenta'}
--[[ Step 4: highlights --[[ Step 4: highlights
You can define highlight groups like this: You can define highlight groups like this:
@ -396,8 +394,6 @@ local highlights = {
markdownH4 = {bg=NONE, fg=magenta, style='bold' }, markdownH4 = {bg=NONE, fg=magenta, style='bold' },
markdownH5 = {bg=NONE, fg=orange, style='bold' }, markdownH5 = {bg=NONE, fg=orange, style='bold' },
markdownH6 = {bg=NONE, fg=yellow, style='bold' }, markdownH6 = {bg=NONE, fg=yellow, style='bold' },
htmlBold = {link='mkdBold' },
htmlItalic = {link='mkdItalic' },
mkdBold = {bg=NONE, fg='green', style='bold' }, mkdBold = {bg=NONE, fg='green', style='bold' },
mkdCode = {link='Comment' }, mkdCode = {link='Comment' },
mkdCodeDelimiter = {link='Delimiter' }, mkdCodeDelimiter = {link='Delimiter' },
@ -509,7 +505,7 @@ local highlights = {
GitGutterAdd = {bg=NONE, fg=green, style=NONE}, GitGutterAdd = {bg=NONE, fg=green, style=NONE},
GitGutterChange = {bg=NONE, fg=yellow, style=NONE}, GitGutterChange = {bg=NONE, fg=yellow, style=NONE},
GitGutterDelete = {bg=NONE, fg=red, style=NONE}, GitGutterDelete = {bg=NONE, fg=red, style=NONE},
GitGutterChangeDelete = {bg=None, fg=orange, style=NONE}, GitGutterChangeDelete = {bg=NONE, fg=orange, style=NONE},
SignifySignAdd = {link='GitGutterAdd' }, SignifySignAdd = {link='GitGutterAdd' },
SignifySignChange = {link='GitGutterChange' }, SignifySignChange = {link='GitGutterChange' },
@ -531,6 +527,24 @@ local highlights = {
NERDTreeLinkTarget = {link='Tag' }, NERDTreeLinkTarget = {link='Tag' },
} }
if vim.api.call_function('has', {'nvim-0.5'}) then
highlights.LspDiagnosticsError = {link='CocErrorHighlight'}
highlights.LspDiagnosticsErrorFloating = {link='ErrorMsg'}
highlights.LspDiagnosticsErrorSign = {link='CocErrorSign'}
highlights.LspDiagnosticsWarning = {link='CocWarningHighlight'}
highlights.LspDiagnosticsWarningFloating = {link='WarningMsg'}
highlights.LspDiagnosticsWarningSign = {link='CocWarningSign'}
highlights.LspDiagnosticsInformation = {link='CocInfoHighlight'}
highlights.LspDiagnosticsInformationFloating = {bg=NONE, fg=ice, style=NONE}
highlights.LspDiagnosticsInformationSign = {link='CocInfoSign'}
highlights.LspDiagnosticsHint = {link = 'CocHintHighlight'}
highlights.LspDiagnosticsHintFloating = {bg=NONE, fg=magenta, style=NONE}
highlights.LspDiagnosticsHintSign = {link='CocHintSign'}
end
--[[ Step 5: Terminal Colors --[[ Step 5: Terminal Colors
Define the color palette used by :terminal when in GUI Vim Define the color palette used by :terminal when in GUI Vim
or in TUI Vim when 'termguicolors' is enabled. If this list or in TUI Vim when 'termguicolors' is enabled. If this list