From ad2242c48cd0cd8d9113b1248ffa02b6e6330681 Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 22 Jan 2022 19:55:43 +0000 Subject: [PATCH] fix diagnostics --- colors/paper-tonic.lua | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/colors/paper-tonic.lua b/colors/paper-tonic.lua index cba1887..d57338b 100644 --- a/colors/paper-tonic.lua +++ b/colors/paper-tonic.lua @@ -115,7 +115,7 @@ local c_fg_exception = {'#7c4444', 251, 'gray'} local c_alert_strong = {'#d70000', 124, 'darkred'} local c_alert = {'#d75f00', 196, 'red'} -local c_alert_weak = {'#d7a100', 203, 'red'} +local c_alert_weak = {'#000000', 203, 'red'} local c_question = {'#000000', 0, 'black'} @@ -387,31 +387,13 @@ local highlight_groups = { WarningMsg = {fg=c_alert, style='bold'}, Question = {fg=c_question, style='bold'}, - --[[ 4.2.11. LSP ]] - LspDiagnosticsDefaultError = 'Error', - LspDiagnosticsFloatingError = 'ErrorMsg', - LspDiagnosticsSignError = 'LspDiagnosticsFloatingError', - LspDiagnosticsLineNrError = 'ErrorMsg', + --[[ 4.2.11. Diagnostic ]] + DiagnosticHint = 'Hint', + DiagnosticWarn = 'Warning', + DiagnosticWarning = 'Warning', + DiagnosticError = 'Error', + DiagnosticInfo = 'Info', - LspDiagnosticsDefaultWarning = 'Warning', - LspDiagnosticsFloatingWarning = 'WarningMsg', - LspDiagnosticsSignWarning = 'LspDiagnosticsFloatingWarning', - LspDiagnosticsLineNrWarning = 'WarningMsg', - - LspDiagnosticsDefaultHint = 'Hint', - LspDiagnosticsFloatingHint = 'HintMsg', - LspDiagnosticsSignHint = 'LspDiagnosticsFloatingHint', - LspDiagnosticsLineNrHint = 'HintMsg', - - LspDiagnosticsDefaultInformation = 'Info', - LspDiagnosticsFloatingInformation = 'InfoMsg', - LspDiagnosticsSignInformation = 'LspDiagnosticsFloatingInformation', - LspDiagnosticsLineNrInformation = 'InfoMsg', - - LspDiagnosticsUnderlineError = 'CocErrorHighlight', - LspDiagnosticsUnderlineHint = 'CocHintHighlight', - LspDiagnosticsUnderlineInfo = 'CocInfoHighlight', - LspDiagnosticsUnderlineWarning = 'CocWarningHighlight', --[[ 4.2.12. Cursor ]] Cursor = {style='inverse'},