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
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)
Messages can be prefixed prefixed with a string. See |g:ale_virtualtext_prefix|.
+ Message appearance can be changed by modifying these highlight groups:
+ |ALEVirtualTextError| |ALEVirtualTextWarning|
+
+
g:ale_virtualtext_delay *g:ale_virtualtext_delay*
- *b:ale_virtualtext_delay*
+b:ale_virtualtext_delay *b:ale_virtualtext_delay*
Type: |Number|
Default: `10`