Fix #171 - Implement basic error highlighting

This commit is contained in:
w0rp
2017-02-13 00:18:51 +00:00
parent a995daa827
commit 3aa1d57b57
8 changed files with 168 additions and 11 deletions

View File

@@ -234,9 +234,6 @@ function! s:HandleExit(job) abort
" Call user autocommands. This allows users to hook into ALE's lint cycle.
silent doautocmd User ALELint
" Mark line 200, column 17 with a squiggly line or something
" matchadd('ALEError', '\%200l\%17v')
endfunction
function! ale#engine#SetResults(buffer, loclist) abort
@@ -252,6 +249,10 @@ function! ale#engine#SetResults(buffer, loclist) abort
" Don't load/run if not already loaded.
call ale#statusline#Update(a:buffer, a:loclist)
endif
if g:ale_set_highlights
call ale#highlight#SetHighlights(a:buffer, a:loclist)
endif
endfunction
function! s:HandleExitNeoVim(job, data, event) abort