Skip to content

Commit

Permalink
Merge pull request #38 from chrs8/master
Browse files Browse the repository at this point in the history
corrected diagnostic highlights
  • Loading branch information
ishan9299 authored Jan 18, 2022
2 parents 3370f5f + 8e4c58e commit a391200
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 48 deletions.
20 changes: 8 additions & 12 deletions lua/solarized/solarized-flat/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -387,20 +387,16 @@ function M.load_syntax(colors)
syntax['TSTypeBuiltin'] = syntax['Type']
-- syntax['TSEmphasis'] = syntax['']

syntax['LspDiagnosticsDefaultError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['LspDiagnosticsDefaultWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['LspDiagnosticsDefaultInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['LspDiagnosticsDefaultHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['LspDiagnosticsUnderlineError'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineWarning'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineInformation'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineHint'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['DiagnosticError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['DiagnosticWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['DiagnosticInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['DiagnosticHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['DiagnosticUnderlineError'] = {fg=colors.none,guisp=colors.red,style='underline'}
syntax['DiagnosticUnderlineWarning'] = {fg=colors.none,guisp=colors.yellow,style='underline'}
syntax['DiagnosticUnderlineInformation'] = {fg=colors.none,guisp=colors.cyan,style='underline'}
syntax['DiagnosticUnderlineHint'] = {fg=colors.none,guisp=colors.green,style='underline'}

syntax['LspSagaFinderSelection'] = syntax['Search']
syntax['DiagnosticError'] = syntax['LspDiagnosticsDefaultError']
syntax['DiagnosticWarning'] = syntax['LspDiagnosticsDefaultWarning']
syntax['DiagnosticInformation'] = syntax['LspDiagnosticsDefaultInformation']
syntax['DiagnosticHint'] = syntax['LspDiagnosticsDefaultHint']
syntax['TargetWord'] = syntax['Title']

syntax['GitSignsAdd'] = syntax['DiffAdd']
Expand Down
20 changes: 8 additions & 12 deletions lua/solarized/solarized-high/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,20 +407,16 @@ function M.load_syntax(colors)
syntax['TSTypeBuiltin'] = syntax['Type']
-- syntax['TSEmphasis'] = syntax['']

syntax['LspDiagnosticsDefaultError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['LspDiagnosticsDefaultWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['LspDiagnosticsDefaultInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['LspDiagnosticsDefaultHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['LspDiagnosticsUnderlineError'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineWarning'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineInformation'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineHint'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['DiagnosticError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['DiagnosticWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['DiagnosticInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['DiagnosticHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['DiagnosticUnderlineError'] = {fg=colors.none,guisp=colors.red,style='underline'}
syntax['DiagnosticUnderlineWarning'] = {fg=colors.none,guisp=colors.yellow,style='underline'}
syntax['DiagnosticUnderlineInformation'] = {fg=colors.none,guisp=colors.cyan,style='underline'}
syntax['DiagnosticUnderlineHint'] = {fg=colors.none,guisp=colors.green,style='underline'}

syntax['LspSagaFinderSelection'] = syntax['Search']
syntax['DiagnosticError'] = syntax['LspDiagnosticsDefaultError']
syntax['DiagnosticWarning'] = syntax['LspDiagnosticsDefaultWarning']
syntax['DiagnosticInformation'] = syntax['LspDiagnosticsDefaultInformation']
syntax['DiagnosticHint'] = syntax['LspDiagnosticsDefaultHint']
syntax['TargetWord'] = syntax['Title']

syntax['GitSignsAdd'] = syntax['DiffAdd']
Expand Down
20 changes: 8 additions & 12 deletions lua/solarized/solarized-low/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,20 +344,16 @@ function M.load_syntax(colors)
syntax['pandocLineBreak'] = syntax['pandocEscapePair']
syntax['pandocMetadataTitle'] = syntax['pandocMetadata']

syntax['LspDiagnosticsDefaultError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['LspDiagnosticsDefaultWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['LspDiagnosticsDefaultInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['LspDiagnosticsDefaultHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['LspDiagnosticsUnderlineError'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineWarning'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineInformation'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineHint'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['DiagnosticError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['DiagnosticWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['DiagnosticInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['DiagnosticHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['DiagnosticUnderlineError'] = {fg=colors.none,guisp=colors.red,style='underline'}
syntax['DiagnosticUnderlineWarning'] = {fg=colors.none,guisp=colors.yellow,style='underline'}
syntax['DiagnosticUnderlineInformation'] = {fg=colors.none,guisp=colors.cyan,style='underline'}
syntax['DiagnosticUnderlineHint'] = {fg=colors.none,guisp=colors.green,style='underline'}

syntax['LspSagaFinderSelection'] = syntax['Search']
syntax['DiagnosticError'] = syntax['LspDiagnosticsDefaultError']
syntax['DiagnosticWarning'] = syntax['LspDiagnosticsDefaultWarning']
syntax['DiagnosticInformation'] = syntax['LspDiagnosticsDefaultInformation']
syntax['DiagnosticHint'] = syntax['LspDiagnosticsDefaultHint']
syntax['TargetWord'] = syntax['Title']

syntax['GitSignsAdd'] = syntax['DiffAdd']
Expand Down
20 changes: 8 additions & 12 deletions lua/solarized/solarized-normal/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -388,21 +388,17 @@ function M.load_syntax(colors)
syntax['TSTypeBuiltin'] = syntax['Type']
-- syntax['TSEmphasis'] = syntax['']

syntax['LspDiagnosticsDefaultError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['LspDiagnosticsDefaultWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['LspDiagnosticsDefaultInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['LspDiagnosticsDefaultHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['LspDiagnosticsUnderlineError'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineWarning'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineInformation'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['LspDiagnosticsUnderlineHint'] = {fg=colors.none,guisp=colors.none,style='underline'}
syntax['DiagnosticError'] = {fg=colors.red,guisp=colors.red,style='none'}
syntax['DiagnosticWarning'] = {fg=colors.yellow,guisp=colors.yellow,style='none'}
syntax['DiagnosticInformation'] = {fg=colors.cyan,guisp=colors.cyan,style='none'}
syntax['DiagnosticHint'] = {fg=colors.green,guisp=colors.green,style='none'}
syntax['DiagnosticUnderlineError'] = {fg=colors.none,guisp=colors.red,style='underline'}
syntax['DiagnosticUnderlineWarning'] = {fg=colors.none,guisp=colors.yellow,style='underline'}
syntax['DiagnosticUnderlineInformation'] = {fg=colors.none,guisp=colors.cyan,style='underline'}
syntax['DiagnosticUnderlineHint'] = {fg=colors.none,guisp=colors.green,style='underline'}

-- Lspsaga
syntax['LspSagaFinderSelection'] = syntax['Search']
syntax['DiagnosticError'] = syntax['LspDiagnosticsDefaultError']
syntax['DiagnosticWarning'] = syntax['LspDiagnosticsDefaultWarning']
syntax['DiagnosticInformation'] = syntax['LspDiagnosticsDefaultInformation']
syntax['DiagnosticHint'] = syntax['LspDiagnosticsDefaultHint']
syntax['TargetWord'] = syntax['Title']

syntax['GitSignsAdd'] = syntax['DiffAdd']
Expand Down

0 comments on commit a391200

Please sign in to comment.