diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-13 00:47:34 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-13 00:47:34 +0000 |
commit | 584e0bc7f25563bf4ab3ae738b78d9d13a898f94 (patch) | |
tree | c128ae1a0336d407b53d8314dbd1c967cd5a0537 /doc | |
parent | 70623ca8a7ffadac0d282b4737dbb7322659c592 (diff) | |
download | ale-584e0bc7f25563bf4ab3ae738b78d9d13a898f94.zip |
#852 Support formatting echo messages with error codes. No linters set the `code` key yet
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 5638a2c8..3a43685d 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -643,20 +643,27 @@ g:ale_echo_msg_error_str *g:ale_echo_msg_error_str* g:ale_echo_msg_format *g:ale_echo_msg_format* Type: |String| - Default: `'%s'` + Default: `'%code: %%s'` This variable defines a message format for echoed messages. The following sequences of characters will be replaced. - `%s` - will be replaced with the text for the problem - `%linter%` - will be replaced with the name of the linter - `%severity%` - will be replaced withe severity of the problem + `%s` - replaced with the text for the problem + `%...code...% `- replaced with the error code + `%linter%` - replaced with the name of the linter + `%severity%` - replaced withe severity of the problem The strings for `%severity%` can be configured with the following options. |g:ale_echo_msg_error_str| - Defaults to `'Error'` |g:ale_echo_msg_warning_str| - Defaults to `'Warning'` + `%code%` is replaced with the error code, and replaced with an empty string + when there is no error code. Any extra characters between the percent signs + will be printed when an error code is present. For example, a message like + `(error code): message` will be printed for `'%(code): %%s'` and simply the + message will be printed when there is no code. + |g:ale_echo_cursor| needs to be set to 1 for messages to be displayed. |