A couple of more doc fixes
* Update section 5.viii in the README with ALEJobStarted and re-format the example. * Add an extra line after documentation update to ensure consistency with the rest of the doc.
This commit is contained in:
parent
11780e1d3d
commit
b81bc8d481
@ -524,8 +524,10 @@ Will give you:
|
|||||||
### 5.viii. How can I execute some code when ALE starts or stops linting?
|
### 5.viii. How can I execute some code when ALE starts or stops linting?
|
||||||
|
|
||||||
ALE runs its own [autocmd](http://vimdoc.sourceforge.net/htmldoc/autocmd.html)
|
ALE runs its own [autocmd](http://vimdoc.sourceforge.net/htmldoc/autocmd.html)
|
||||||
events when a lint or fix cycle are started and stopped. These events can be
|
events when a lint or fix cycle are started and stopped. There is also an event
|
||||||
used to call arbitrary functions before and after ALE stops linting.
|
that runs when a linter job has been successfully started. These events can be
|
||||||
|
used to call arbitrary functions during these respective parts of the ALE's
|
||||||
|
operation.
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
augroup YourGroup
|
augroup YourGroup
|
||||||
@ -533,6 +535,8 @@ augroup YourGroup
|
|||||||
autocmd User ALELintPre call YourFunction()
|
autocmd User ALELintPre call YourFunction()
|
||||||
autocmd User ALELintPost call YourFunction()
|
autocmd User ALELintPost call YourFunction()
|
||||||
|
|
||||||
|
autocmd User ALEJobStarted call YourFunction()
|
||||||
|
|
||||||
autocmd User ALEFixPre call YourFunction()
|
autocmd User ALEFixPre call YourFunction()
|
||||||
autocmd User ALEFixPost call YourFunction()
|
autocmd User ALEFixPost call YourFunction()
|
||||||
augroup END
|
augroup END
|
||||||
|
@ -2461,6 +2461,7 @@ ALEJobStarted *ALEJobStarted-autocmd*
|
|||||||
|ale#engine#IsCheckingBuffer()| over |ALELintPre-autocmd|, which is actually
|
|ale#engine#IsCheckingBuffer()| over |ALELintPre-autocmd|, which is actually
|
||||||
triggered before any linters are executed.
|
triggered before any linters are executed.
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
10. Special Thanks *ale-special-thanks*
|
10. Special Thanks *ale-special-thanks*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user