From 3aa1d57b5715b18f1544d36a3101ff45a6a86239 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 13 Feb 2017 00:18:51 +0000 Subject: Fix #171 - Implement basic error highlighting --- plugin/ale.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugin/ale.vim') diff --git a/plugin/ale.vim b/plugin/ale.vim index d65a99cb..6afa603b 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -81,6 +81,9 @@ let g:ale_keep_list_window_open = get(g:, 'ale_keep_list_window_open', 0) " This is enabled by default only if the 'signs' feature exists. let g:ale_set_signs = get(g:, 'ale_set_signs', has('signs')) +" This flag can be set to 0 to disable setting error highlights. +let g:ale_set_highlights = get(g:, 'ale_set_highlights', has('syntax')) + " These variables dicatate what sign is used to indicate errors and warnings. let g:ale_sign_error = get(g:, 'ale_sign_error', '>>') let g:ale_sign_warning = get(g:, 'ale_sign_warning', '--') @@ -161,6 +164,11 @@ function! s:ALEToggle() abort " Clear signs, loclist, quicklist call ale#engine#SetResults(l:buffer, []) endfor + + " Remove highlights for the current buffer now. + if g:ale_set_higlights + call ale#highlight#UpdateHighlights() + endif endif call s:ALEInitAuGroups() -- cgit v1.2.3