summaryrefslogtreecommitdiff
path: root/test/test_alelint_autocmd.vader
AgeCommit message (Collapse)Author
2018-05-28#1524 Do not try to check buffers with empty filetypesw0rp
2018-03-03Close #1379 - Increment b:ale_linted when a buffer is checkedw0rp
2017-12-10Run before lint cycle, rename autocmdsMartin Tournoij
2017-12-07Add ALEStartLint autocmdMartin Tournoij
This grew out of my work in #1193; to ensure the statusline was being updated I had to add: fun! s:redraw(timer) redrawstatus endfun augroup ALEProgress autocmd! autocmd BufWritePost * call timer_start(100, function('s:redraw')) autocmd User ALELint redrawstatus augroup end Which kind of works, but is ugly. With this, I can replace the `BufWritePost` with: autocmd User ALEStartLint redrawstatus Which is much better, IMHO. Actually, this patch actually replaces adding a function, since you can do: augroup ALEProgress autocmd! autocmd User ALEStartLint hi Statusline ctermfg=darkgrey autocmd User ALELint hi Statusline ctermfg=NONE augroup end or: let s:ale_running = 0 let l:stl .= '%{s:ale_running ? "[linting]" : ""}' augroup ALEProgress autocmd! autocmd User ALEStartLint let s:ale_running = 1 | redrawstatus autocmd User ALELint let s:ale_running = 0 | redrawstatus augroup end Both seem to work very well in my testing. No need to `ale#Statusline#IsRunning()` anymore, I think?
2017-07-14Simplify the tests for the ALELint autocmd commandw0rp
2017-06-06Fix a testw0rp
2016-10-24Merge everything into the one global map.w0rp
2016-10-22Clean up some test filenames and extraneous codeBjorn Neergaard
2016-10-17Add autocommand testBjorn Neergaard