mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 13:14:29 +08:00
Fix #4400 - Separate virtual text highlight groups to avoid errors
This commit is contained in:
@@ -3,6 +3,26 @@ scriptencoding utf-8
|
|||||||
" Author: Luan Santos <cfcluan@gmail.com>
|
" Author: Luan Santos <cfcluan@gmail.com>
|
||||||
" Description: Shows lint message for the current line as virtualtext, if any
|
" Description: Shows lint message for the current line as virtualtext, if any
|
||||||
|
|
||||||
|
if !hlexists('ALEVirtualTextError')
|
||||||
|
highlight link ALEVirtualTextError SpellBad
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !hlexists('ALEVirtualTextStyleError')
|
||||||
|
highlight link ALEVirtualTextStyleError ALEVirtualTextError
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !hlexists('ALEVirtualTextWarning')
|
||||||
|
highlight link ALEVirtualTextWarning SpellCap
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !hlexists('ALEVirtualTextStyleWarning')
|
||||||
|
highlight link ALEVirtualTextStyleWarning ALEVirtualTextWarning
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !hlexists('ALEVirtualTextInfo')
|
||||||
|
highlight link ALEVirtualTextInfo ALEVirtualTextWarning
|
||||||
|
endif
|
||||||
|
|
||||||
" Controls the milliseconds delay before showing a message.
|
" Controls the milliseconds delay before showing a message.
|
||||||
let g:ale_virtualtext_delay = get(g:, 'ale_virtualtext_delay', 10)
|
let g:ale_virtualtext_delay = get(g:, 'ale_virtualtext_delay', 10)
|
||||||
let s:cursor_timer = get(s:, 'cursor_timer', -1)
|
let s:cursor_timer = get(s:, 'cursor_timer', -1)
|
||||||
|
|||||||
@@ -2508,7 +2508,7 @@ ALEStyleWarningSignLineNr *ALEStyleWarningSignLineNr*
|
|||||||
|
|
||||||
ALEVirtualTextError *ALEVirtualTextError*
|
ALEVirtualTextError *ALEVirtualTextError*
|
||||||
|
|
||||||
Default: `highlight link ALEVirtualTextError ALEError`
|
Default: `highlight link ALEVirtualTextError SpellBad`
|
||||||
|
|
||||||
The highlight for virtualtext errors. See |g:ale_virtualtext_cursor|.
|
The highlight for virtualtext errors. See |g:ale_virtualtext_cursor|.
|
||||||
|
|
||||||
@@ -2536,7 +2536,7 @@ ALEVirtualTextStyleWarning *ALEVirtualTextStyleWarning*
|
|||||||
|
|
||||||
ALEVirtualTextWarning *ALEVirtualTextWarning*
|
ALEVirtualTextWarning *ALEVirtualTextWarning*
|
||||||
|
|
||||||
Default: `highlight link ALEVirtualTextWarning ALEWarning`
|
Default: `highlight link ALEVirtualTextWarning SpellCap`
|
||||||
|
|
||||||
The highlight for virtualtext errors. See |g:ale_virtualtext_cursor|.
|
The highlight for virtualtext errors. See |g:ale_virtualtext_cursor|.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user