summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-12-17 12:06:57 +0000
committerGitHub <noreply@github.com>2017-12-17 12:06:57 +0000
commitc8ee402ccefea822629970fb39b538eca95219c4 (patch)
treedd45ec06ec73748d1db57a18d291c582c101a108 /autoload
parenta22def45b956e796fc676e94a5d169a5c059c1ce (diff)
parent4825cce1cc9ec729ea59ae90eb819f67239d335b (diff)
downloadale-c8ee402ccefea822629970fb39b538eca95219c4.zip
Merge pull request #1203 from Carpetsmoker/autocmd-start
Add ALEStartLint autocmd
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim4
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