From 584e0bc7f25563bf4ab3ae738b78d9d13a898f94 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 13 Nov 2017 00:47:34 +0000 Subject: #852 Support formatting echo messages with error codes. No linters set the `code` key yet --- plugin/ale.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugin') 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') -- cgit v1.2.3