From 3e13e10e033876688c1a6e01fc2c9af9ef65a8ae Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 21 Mar 2017 13:38:27 +0000 Subject: #333 Change arguments for ale#Queue so they are more obvious, and check files in more places --- plugin/ale.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugin/ale.vim') 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() -- cgit v1.2.3