diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-10 12:57:27 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-10 12:57:27 +0100 |
commit | 56894b432ea8b549780fadf7fca47e0356129226 (patch) | |
tree | e2bed023bc124356c81628083dc668bbb91d40ef /doc | |
parent | 3083d05afd3818e5db33f066392935bbf828e263 (diff) | |
parent | e4b3f579fa3c5e4edc8214194cfab4d8cb8aaa6b (diff) | |
download | ale-56894b432ea8b549780fadf7fca47e0356129226.zip |
Merge remote-tracking branch 'origin/echo-string-format'
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index bdd2b801..ec2e8028 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1,7 +1,7 @@ -*ale.txt* For Vim version 8.0. Last change: 2016 October 7 +*ale.txt* For Vim version 8.0. Last change: 2016 October 10 *ale* -ALE - Asychronous Lint Engine +ALE - Asynchronous Lint Engine =============================================================================== CONTENTS *ale-contents* @@ -157,7 +157,7 @@ g:ale_set_signs *g:ale_set_signs* When this option is set to `1`, the |sign| column will be populated with signs marking where errors and warnings appear in the file. The - 'ALEErrorSign' and 'ALEWarningSign' highlight groups will be used to provide + `ALEErrorSign` and `ALEWarningSign` highlight groups will be used to provide highlighting for the signs. The text used for signs can be customised with the |g:ale_sign_error| and |g:ale_sign_warning| options. @@ -216,6 +216,39 @@ g:ale_echo_cursor *g:ale_echo_cursor* error at a column nearest to the cursor when the cursor is resting on a line which contains a warning or error. This option can be set to `0` to disable this behaviour. + The format of the message can be customizable in |g:ale_echo_msg_format|. + + +g:ale_echo_msg_format *g:ale_echo_msg_format* + + Type: |String| + Default: `%s` + + This variable defines the format of the echoed message. The `%s` is the + error message itself, and it can contain the following handlers: + - `%linter%` for linter's name + - `%severity%` for the type of severity + Note |`g:ale_echo_cursor`| should be setted to 1 + + +g:ale_echo_msg_error_str *g:ale_echo_msg_error_str* + + Type: |String| + Default: `Error` + + The string used for error severity in the echoed message. + Note |`g:ale_echo_cursor`| should be setted to 1 + Note |`g:ale_echo_msg_format`| should contain the `%severity%` handler + + +g:ale_echo_msg_warning_str *g:ale_echo_msg_warning_str* + + Type: |String| + Default: `Warning` + + The string used for warning severity in the echoed message. + Note |`g:ale_echo_cursor`| should be setted to 1 + Note |`g:ale_echo_msg_format`| should contain the `%severity%` handler g:ale_warn_about_trailing_whitespace *g:ale_warn_about_trailing_whitespace* |