Run before lint cycle, rename autocmds

This commit is contained in:
Martin Tournoij committed 2017-12-10 13:10:52 +00:00
1 parent d6bf13502a
commit 4825cce1cc
4 files changed
+37 -49

No files matched your search

+4 -4
View File
@@ -497,14 +497,14 @@ Will give you:
ALE runs its own [autocmd](http://vimdoc.sourceforge.net/htmldoc/autocmd.html)
events whenever has a linter is started and has been successfully executed and
processed. This autocmd event can be used to call arbitrary functions before and
after ALE stops linting.
processed. These events can be used to call arbitrary functions before and after
ALE stops linting.
```vim
augroup YourGroup
autocmd!
autocmd User ALEStartLint call YourFunction()
autocmd User ALELint call YourFunction()
autocmd User ALELintPre call YourFunction()
autocmd User ALELintPost call YourFunction()
augroup END
```