mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-06 01:47:47 +08:00
Fix #741 - Set highlights for entire lines when signs are disabled
This commit is contained in:
@@ -91,6 +91,22 @@ function! ale#highlight#UpdateHighlights() abort
|
||||
\ 'matchaddpos(l:group, v:val)'
|
||||
\)
|
||||
endfor
|
||||
|
||||
" If highlights are enabled and signs are not enabled, we should still
|
||||
" offer line highlights by adding a separate set of highlights.
|
||||
if !g:ale_set_signs
|
||||
for l:item in l:item_list
|
||||
if l:item.type is# 'W'
|
||||
let l:group = 'ALEWarningLine'
|
||||
elseif l:item.type is# 'I'
|
||||
let l:group = 'ALEInfoLine'
|
||||
else
|
||||
let l:group = 'ALEErrorLine'
|
||||
endif
|
||||
|
||||
call matchaddpos(l:group, [l:item.lnum])
|
||||
endfor
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! ale#highlight#BufferHidden(buffer) abort
|
||||
|
||||
Reference in New Issue
Block a user