diff options
author | jamestthompson3 <jamestthompson3@gmail.com> | 2018-11-14 18:21:35 +0200 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-11-14 16:21:35 +0000 |
commit | f64f9aba166295d594e29de42c2bdb27000e76ae (patch) | |
tree | 3290e21cc007ccca97092b43a2b8cf3a51d5be85 /autoload | |
parent | 3948638dbeb34f638bb54ac519ed1863eeec6731 (diff) | |
download | ale-f64f9aba166295d594e29de42c2bdb27000e76ae.zip |
Add specific highlight groups for virtualtext (#2071)
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/virtualtext.vim | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/autoload/ale/virtualtext.vim b/autoload/ale/virtualtext.vim index 85a12de6..9fa66217 100644 --- a/autoload/ale/virtualtext.vim +++ b/autoload/ale/virtualtext.vim @@ -8,6 +8,14 @@ let g:ale_virtualtext_delay = get(g:, 'ale_virtualtext_delay', 10) let s:cursor_timer = -1 let s:last_pos = [0, 0, 0] +if !hlexists('ALEVirtualTextWarning') + highlight link ALEVirtualTextWarning ALEWarning +endif + +if !hlexists('ALEVirtualTextError') + highlight link ALEVirtualTextError ALEError +endif + function! ale#virtualtext#Clear() abort if !has('nvim-0.3.2') return @@ -63,9 +71,9 @@ function! ale#virtualtext#ShowCursorWarning(...) abort let l:type = get(l:loc, 'type', 'E') if l:type is# 'E' - let l:hl_group = 'ALEError' + let l:hl_group = 'ALEVirtualTextError' elseif l:type is# 'W' - let l:hl_group = 'ALEWarning' + let l:hl_group = 'ALEVirtualTextWarning' endif call ale#virtualtext#ShowMessage(l:msg, l:hl_group) |