Fix #687 - Check files on enter if they have changed

This commit is contained in:
w0rp 2017-06-24 12:24:31 +01:00
parent fbf8ccb882
commit 1ea61162a0
5 changed files with 107 additions and 1 deletions

View file

@ -209,6 +209,10 @@ function! ALEInitAuGroups() abort
autocmd!
if g:ale_enabled && g:ale_lint_on_enter
autocmd BufWinEnter,BufRead * call ale#Queue(300, 'lint_file')
" Track when the file is changed outside of Vim.
autocmd FileChangedShellPost * call ale#events#FileChangedEvent(str2nr(expand('<abuf>')))
" If the file has been changed, then check it again on enter.
autocmd BufEnter * call ale#events#EnterEvent()
endif
augroup END