add ALEToggle command (#303)

* add ALEToggle command

* stop active jobs when toggled off

* small logic cleanup & ensure ale can be ran manually while toggled off
This commit is contained in:
Daniel Lupu
2017-02-09 20:47:14 +02:00
committed by w0rp
parent 943fe9b4b0
commit 6dfed8576e
3 changed files with 77 additions and 36 deletions
+4
View File
@@ -3,6 +3,10 @@
" Update the buffer error/warning count with data from loclist.
function! ale#statusline#Update(buffer, loclist) abort
if !has_key(g:ale_buffer_info, a:buffer)
return
endif
let l:errors = 0
let l:warnings = 0