From cc5da58613eeb5becc55f4b1bec4acb406bc83af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1vio=20Carlos=20Martins=20Costa?= Date: Fri, 3 Dec 2021 09:15:59 -0300 Subject: [PATCH 1/3] fix(neovim): diagnostic highlights in v0.6.0 Release notes: https://github.com/neovim/neovim/releases/tag/v0.6.0 Breaking change commit: https://github.com/neovim/neovim/pull/15585/commits/a5bbb932f9094098bd656d3f6be3c58344576709 Updated documentation: https://neovim.io/doc/user/diagnostic.html#diagnostic-highlights --- colors/dracula.vim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/colors/dracula.vim b/colors/dracula.vim index 224d5a6..b19ad8d 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -262,14 +262,14 @@ if has('nvim') hi! link LspReferenceText DraculaSelection hi! link LspReferenceRead DraculaSelection hi! link LspReferenceWrite DraculaSelection - hi! link LspDiagnosticsDefaultInformation DraculaCyan - hi! link LspDiagnosticsDefaultHint DraculaCyan - hi! link LspDiagnosticsDefaultError DraculaError - hi! link LspDiagnosticsDefaultWarning DraculaOrange - hi! link LspDiagnosticsUnderlineError DraculaErrorLine - hi! link LspDiagnosticsUnderlineHint DraculaInfoLine - hi! link LspDiagnosticsUnderlineInformation DraculaInfoLine - hi! link LspDiagnosticsUnderlineWarning DraculaWarnLine + hi! link DiagnosticInfo DraculaCyan + hi! link DiagnosticHint DraculaCyan + hi! link DiagnosticError DraculaError + hi! link DiagnosticWarn DraculaOrange + hi! link DiagnosticUnderlineError DraculaErrorLine + hi! link DiagnosticUnderlineHint DraculaInfoLine + hi! link DiagnosticUnderlineInfo DraculaInfoLine + hi! link DiagnosticUnderlineWarn DraculaWarnLine else hi! link SpecialKey DraculaPink endif From a503a351da73b58a5f9860824a0e62b9047789b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1vio=20Carlos=20Martins=20Costa?= Date: Fri, 3 Dec 2021 16:52:27 -0300 Subject: [PATCH 2/3] add links to old 'LspDiagnosticsDefault*' hl groups for backward compatibility with neovim v0.5.x --- colors/dracula.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/colors/dracula.vim b/colors/dracula.vim index b19ad8d..07e93ac 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -270,6 +270,18 @@ if has('nvim') hi! link DiagnosticUnderlineHint DraculaInfoLine hi! link DiagnosticUnderlineInfo DraculaInfoLine hi! link DiagnosticUnderlineWarn DraculaWarnLine + + " Link old 'LspDiagnosticsDefault*' hl groups + " for backward compatibility with neovim v0.5.x + hi! link LspDiagnosticsDefaultInformation DiagnosticInfo + hi! link LspDiagnosticsDefaultHint DiagnosticHint + hi! link LspDiagnosticsDefaultError DiagnosticError + hi! link LspDiagnosticsDefaultWarning DiagnosticWarn + hi! link LspDiagnosticsUnderlineError DiagnosticUnderlineError + hi! link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint + hi! link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo + hi! link LspDiagnosticsUnderlineWarning DiagnosticUnderlineWarn + else hi! link SpecialKey DraculaPink endif From 75461a72b6c1d48df087730941b3f4db9712de2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1vio=20Carlos=20Martins=20Costa?= Date: Fri, 3 Dec 2021 20:16:46 -0300 Subject: [PATCH 3/3] reorganize the definitions of neovim diagnostic hl groups Co-authored-by: D. Ben Knoble --- colors/dracula.vim | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/colors/dracula.vim b/colors/dracula.vim index 07e93ac..df1e0a3 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -262,15 +262,6 @@ if has('nvim') hi! link LspReferenceText DraculaSelection hi! link LspReferenceRead DraculaSelection hi! link LspReferenceWrite DraculaSelection - hi! link DiagnosticInfo DraculaCyan - hi! link DiagnosticHint DraculaCyan - hi! link DiagnosticError DraculaError - hi! link DiagnosticWarn DraculaOrange - hi! link DiagnosticUnderlineError DraculaErrorLine - hi! link DiagnosticUnderlineHint DraculaInfoLine - hi! link DiagnosticUnderlineInfo DraculaInfoLine - hi! link DiagnosticUnderlineWarn DraculaWarnLine - " Link old 'LspDiagnosticsDefault*' hl groups " for backward compatibility with neovim v0.5.x hi! link LspDiagnosticsDefaultInformation DiagnosticInfo @@ -281,7 +272,15 @@ if has('nvim') hi! link LspDiagnosticsUnderlineHint DiagnosticUnderlineHint hi! link LspDiagnosticsUnderlineInformation DiagnosticUnderlineInfo hi! link LspDiagnosticsUnderlineWarning DiagnosticUnderlineWarn - + + hi! link DiagnosticInfo DraculaCyan + hi! link DiagnosticHint DraculaCyan + hi! link DiagnosticError DraculaError + hi! link DiagnosticWarn DraculaOrange + hi! link DiagnosticUnderlineError DraculaErrorLine + hi! link DiagnosticUnderlineHint DraculaInfoLine + hi! link DiagnosticUnderlineInfo DraculaInfoLine + hi! link DiagnosticUnderlineWarn DraculaWarnLine else hi! link SpecialKey DraculaPink endif