diff options
author | w0rp <devw0rp@gmail.com> | 2017-03-21 13:38:27 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-03-21 13:38:27 +0000 |
commit | 3e13e10e033876688c1a6e01fc2c9af9ef65a8ae (patch) | |
tree | d6da92d64aef28d1ceac60a96c908726d2685405 /plugin/ale.vim | |
parent | 2d1d6fb85011e07a6b5b29f57247254cbc4b8815 (diff) | |
download | ale-3e13e10e033876688c1a6e01fc2c9af9ef65a8ae.zip |
#333 Change arguments for ale#Queue so they are more obvious, and check files in more places
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r-- | plugin/ale.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index 84f57dbd..3033fd5c 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -157,14 +157,14 @@ function! s:ALEInitAuGroups() abort augroup ALERunOnEnterGroup autocmd! if g:ale_enabled && g:ale_lint_on_enter - autocmd BufEnter,BufRead * call ale#Queue(300, 1) + autocmd BufEnter,BufRead * call ale#Queue(300, 'lint_file') endif augroup END augroup ALERunOnSaveGroup autocmd! if g:ale_enabled && g:ale_lint_on_save - autocmd BufWrite * call ale#Queue(0, 1) + autocmd BufWrite * call ale#Queue(0, 'lint_file') endif augroup END @@ -191,8 +191,8 @@ function! s:ALEToggle() abort let g:ale_enabled = !get(g:, 'ale_enabled') if g:ale_enabled - " Lint immediately - call ale#Queue(0) + " Lint immediately, including running linters against the file. + call ale#Queue(0, 'lint_file') else " Make sure the buffer number is a number, not a string, " otherwise things can go wrong. @@ -226,7 +226,7 @@ command! ALEDetail :call ale#cursor#ShowCursorDetail() " A command for turning ALE on or off. command! ALEToggle :call s:ALEToggle() " A command for linting manually. -command! ALELint :call ale#Queue(0) +command! ALELint :call ale#Queue(0, 'lint_file') " Define a command to get information about current filetype. command! ALEInfo :call ale#debugging#Info() |