diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-24 12:24:31 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-24 12:24:31 +0100 |
commit | 1ea61162a0c43da9a149b24dc35911cb981fbe7c (patch) | |
tree | a88621586401f17299cd85835f47a8a27d224296 /plugin | |
parent | fbf8ccb882eb7819011fa837ea2b4930ed4fa9c7 (diff) | |
download | ale-1ea61162a0c43da9a149b24dc35911cb981fbe7c.zip |
Fix #687 - Check files on enter if they have changed
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index 5901187f..a42eb50b 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -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 |