From 3b17e39b377486507927c1b13b135e71e90918fe Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Sun, 6 Aug 2017 12:12:13 -0700 Subject: [PATCH] Highlight Info and Hint as SpellCap Visually conveys the lower severity compared to Warning. --- CHANGELOG.md | 1 + doc/lsc.txt | 10 +++++----- plugin/lsc.vim | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25336eb7..c962b26d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Add autocmds `LSCAutocomplete` before firing completion, and `LSCShowPreview` after opening the preview window. +- Change Info and Hint diagnostic default highlight to `SpellCap`. # 0.2.4 diff --git a/doc/lsc.txt b/doc/lsc.txt index f00e75bf..a47899b5 100644 --- a/doc/lsc.txt +++ b/doc/lsc.txt @@ -111,11 +111,11 @@ configuration will not impact the preview window which may open during completion. *lsc-configure-highlight* -vim-lsc uses the highlight groups "lscDiagnosticError", -"lscDiagnosticWarning", "lscDiagnosticInfo", and "lscDiagnosticHint". By -default "lscDiagnosticError" is linked to |hl-Error|, and the rest are linked -to |hl-SpellBad|. Override this by setting or linking any of these highlight -groups. For example: +vim-lsc uses highlight groups "lscDiagnosticError", "lscDiagnosticWarning", +"lscDiagnosticInfo", and "lscDiagnosticHint". By default "Error" is linked to +|hl-Error|, "Warning" is linked to |hl-SpllBad|, and "Info" and "Hint" are +linked to |hl-SpellCap|. Override this by setting or linking any of these +highlight groups. For example: > highlight lscDiagnosticError ctermbg=160 highlight link lscDiagnosticWarning SpellCap diff --git a/plugin/lsc.vim b/plugin/lsc.vim index 230518c9..10c5896f 100644 --- a/plugin/lsc.vim +++ b/plugin/lsc.vim @@ -129,8 +129,8 @@ if !hlexists('lscDiagnosticWarning') highlight link lscDiagnosticWarning SpellBad endif if !hlexists('lscDiagnosticInfo') - highlight link lscDiagnosticInfo SpellBad + highlight link lscDiagnosticInfo SpellCap endif if !hlexists('lscDiagnosticHint') - highlight link lscDiagnosticHint SpellBad + highlight link lscDiagnosticHint SpellCap endif