Merge pull request #1879 from gmolau/Fix-syntastic-formatting

Fix the formatting of syntastic error messages
This commit is contained in:
Christian Brabandt 2019-02-22 07:49:52 +01:00 committed by GitHub
commit 1c3ae6077a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -22,9 +22,9 @@ function! airline#extensions#syntastic#get(type)
let _backup = get(g:, 'syntastic_stl_format', '') let _backup = get(g:, 'syntastic_stl_format', '')
let is_err = (a:type is# 'error') let is_err = (a:type is# 'error')
if is_err if is_err
let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_err', '%E{[%e(#%fe)]}') let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_err', '%E{[%fe(#%e)]}')
else else
let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_warn', '%W{[%w(#%fw)]}') let g:syntastic_stl_format = get(g:, 'airline#extensions#syntastic#stl_format_warn', '%W{[%fw(#%w)]}')
endif endif
let cnt = SyntasticStatuslineFlag() let cnt = SyntasticStatuslineFlag()
if !empty(_backup) if !empty(_backup)

View File

@ -774,13 +774,13 @@ syntastic <https://github.com/vim-syntastic/syntastic>
let airline#extensions#syntastic#error_symbol = 'E:' let airline#extensions#syntastic#error_symbol = 'E:'
< <
* syntastic statusline error format (see |syntastic_stl_format|) > * syntastic statusline error format (see |syntastic_stl_format|) >
let airline#extensions#syntastic#stl_format_err = '%E{[%e(#%fe)]}' let airline#extensions#syntastic#stl_format_err = '%E{[%fe(#%e)]}'
* syntastic warning > * syntastic warning >
let airline#extensions#syntastic#warning_symbol = 'W:' let airline#extensions#syntastic#warning_symbol = 'W:'
< <
* syntastic statusline warning format (see |syntastic_stl_format|) > * syntastic statusline warning format (see |syntastic_stl_format|) >
let airline#extensions#syntastic#stl_format_warn = '%W{[%w(#%fw)]}' let airline#extensions#syntastic#stl_format_warn = '%W{[%fw(#%w)]}'
< <
------------------------------------- *airline-tabline* ------------------------------------- *airline-tabline*
Note: If you're using the ctrlspace tabline only the option marked with (c) Note: If you're using the ctrlspace tabline only the option marked with (c)