summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-13 00:47:34 +0000
committerw0rp <devw0rp@gmail.com>2017-11-13 00:47:34 +0000
commit584e0bc7f25563bf4ab3ae738b78d9d13a898f94 (patch)
treec128ae1a0336d407b53d8314dbd1c967cd5a0537 /plugin/ale.vim
parent70623ca8a7ffadac0d282b4737dbb7322659c592 (diff)
downloadale-584e0bc7f25563bf4ab3ae738b78d9d13a898f94.zip
#852 Support formatting echo messages with error codes. No linters set the `code` key yet
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index c67e1de7..26d3c43d 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -148,10 +148,8 @@ let g:ale_sign_offset = get(g:, 'ale_sign_offset', 1000000)
" This flag can be set to 1 to keep sign gutter always open
let g:ale_sign_column_always = get(g:, 'ale_sign_column_always', 0)
-" String format for the echoed message
-" A %s is mandatory
-" It can contain 2 handlers: %linter%, %severity%
-let g:ale_echo_msg_format = get(g:, 'ale_echo_msg_format', '%s')
+" A string format for the echoed message
+let g:ale_echo_msg_format = get(g:, 'ale_echo_msg_format', '%code: %%s')
" Strings used for severity in the echoed message
let g:ale_echo_msg_error_str = get(g:, 'ale_echo_msg_error_str', 'Error')