diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-12-17 12:06:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-17 12:06:57 +0000 |
commit | c8ee402ccefea822629970fb39b538eca95219c4 (patch) | |
tree | dd45ec06ec73748d1db57a18d291c582c101a108 /autoload | |
parent | a22def45b956e796fc676e94a5d169a5c059c1ce (diff) | |
parent | 4825cce1cc9ec729ea59ae90eb819f67239d335b (diff) | |
download | ale-c8ee402ccefea822629970fb39b538eca95219c4.zip |
Merge pull request #1203 from Carpetsmoker/autocmd-start
Add ALEStartLint autocmd
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/engine.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 150b53c1..65e663aa 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -321,6 +321,8 @@ function! ale#engine#SetResults(buffer, loclist) abort call ale#engine#RemoveManagedFiles(a:buffer) " Call user autocommands. This allows users to hook into ALE's lint cycle. + silent doautocmd <nomodeline> User ALELintPost + " Old DEPRECATED name; call it for backwards compatibility. silent doautocmd <nomodeline> User ALELint endif endfunction @@ -785,6 +787,8 @@ function! ale#engine#RunLinters(buffer, linters, should_lint_file) abort " We can only clear the results if we aren't checking the buffer. let l:can_clear_results = !ale#engine#IsCheckingBuffer(a:buffer) + silent doautocmd <nomodeline> User ALELintPre + for l:linter in a:linters " Only run lint_file linters if we should. if !l:linter.lint_file || a:should_lint_file |