Add ALEFixPre and ALEFixPost events

To run autocmd before and after every fix cycle.

Fixes #623 (`ALELintPre` was added in #1203).
This commit is contained in:
Martin Tournoij
2017-12-23 13:13:55 +00:00
parent 92e6e4d1ba
commit 302f69e933
4 changed files with 28 additions and 5 deletions

View File

@@ -2304,9 +2304,11 @@ b:ale_linted *b:ale_linted*
ALELintPre *ALELintPre-autocmd*
ALELintPost *ALELintPost-autocmd*
ALEFixPre *ALEFixPre-autocmd*
ALEFixPost *ALEFixPost-autocmd*
These |User| autocommands are triggered before and after every lint cycle.
They can be used to update statuslines, send notifications, etc.
These |User| autocommands are triggered before and after every lint or fix
cycle. They can be used to update statuslines, send notifications, etc.
The autocmd commands are run with |:silent|, so |:unsilent| is required for
echoing messges.