mirror of https://github.com/dense-analysis/ale
Fix #2760 - Ignore all errors for adding NeoVim highlights
This commit is contained in:
parent
2e323b529d
commit
cda46636f4
|
@ -34,7 +34,11 @@ endif
|
||||||
|
|
||||||
" Wrappers are necessary to test this functionality by faking the calls in tests.
|
" Wrappers are necessary to test this functionality by faking the calls in tests.
|
||||||
function! ale#highlight#nvim_buf_add_highlight(buffer, ns_id, hl_group, line, col_start, col_end) abort
|
function! ale#highlight#nvim_buf_add_highlight(buffer, ns_id, hl_group, line, col_start, col_end) abort
|
||||||
|
" Ignore all errors for adding highlights.
|
||||||
|
try
|
||||||
call nvim_buf_add_highlight(a:buffer, a:ns_id, a:hl_group, a:line, a:col_start, a:col_end)
|
call nvim_buf_add_highlight(a:buffer, a:ns_id, a:hl_group, a:line, a:col_start, a:col_end)
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#highlight#nvim_buf_clear_namespace(buffer, ns_id, line_start, line_end) abort
|
function! ale#highlight#nvim_buf_clear_namespace(buffer, ns_id, line_start, line_end) abort
|
||||||
|
|
Loading…
Reference in New Issue