#852 Update the REAME to mention %...code...%

This commit is contained in:
w0rp 2018-05-08 18:32:13 +01:00
parent 9023987fe0
commit 7541a40859
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83

View File

@ -515,6 +515,8 @@ There are 3 global options that allow customizing the echoed message.
- `g:ale_echo_msg_format` where: - `g:ale_echo_msg_format` where:
* `%s` is the error message itself * `%s` is the error message itself
* `%...code...%` is an optional error code, and most characters can be
written between the `%` characters.
* `%linter%` is the linter name * `%linter%` is the linter name
* `%severity` is the severity type * `%severity` is the severity type
- `g:ale_echo_msg_error_str` is the string used for error severity. - `g:ale_echo_msg_error_str` is the string used for error severity.
@ -532,6 +534,8 @@ Will give you:
![Echoed message](img/echo.png) ![Echoed message](img/echo.png)
See `:help g:ale_echo_msg_format` for more information.
<a name="faq-autocmd"></a> <a name="faq-autocmd"></a>
### 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?