Skip to content

Commit

Permalink
Highlight Info and Hint as SpellCap
Browse files Browse the repository at this point in the history
Visually conveys the lower severity compared to Warning.
  • Loading branch information
natebosch committed Aug 6, 2017
1 parent 7c7c708 commit 3b17e39
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions doc/lsc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions plugin/lsc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3b17e39

Please sign in to comment.