summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorMartin Tournoij <martin@arp242.net>2017-12-10 13:03:03 +0000
committerMartin Tournoij <martin@arp242.net>2017-12-10 13:10:52 +0000
commit4825cce1cc9ec729ea59ae90eb819f67239d335b (patch)
tree22251e4b49a7fe0ea50ca2b29a986dc40e648ad5 /autoload
parentd6bf13502ad7a018a739b82bc068d299aacc5d26 (diff)
downloadale-4825cce1cc9ec729ea59ae90eb819f67239d335b.zip
Run before lint cycle, rename autocmds
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index 895544fe..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
@@ -556,8 +558,6 @@ function! s:RunJob(options) abort
\ 'output': [],
\ 'next_chain_index': l:next_chain_index,
\}
-
- silent doautocmd <nomodeline> User ALEStartLint
endif
if g:ale_history_enabled
@@ -787,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