liuchengxu / eleline.vim

:herb: Another elegant statusline for vim
MIT License
311 stars 79 forks source link

Add support for Syntastic #47

Closed Frederick888 closed 3 years ago

Frederick888 commented 3 years ago

Syntastic [1] is a syntax checking plugin. It can be useful to introduce additional linting info.

A new configuration g:eleline_syntastic_raw is introduced. When set to 0 (default), the built-in format is used; when set to 1, it calls Syntastic's SyntasticStatuslineFlag() directly, which can be configured by user via g:syntastic_stl_format [2].

[1] https://github.com/vim-syntastic/syntastic [2] https://github.com/vim-syntastic/syntastic/blob/176f364f1b4acf894cdc248944f2d5506a37cc80/doc/syntastic.txt#L627-L643


Screenshots

let g:eleline_syntastic_raw = 0  " default

image

let g:eleline_syntastic_raw = 1
let g:syntastic_stl_format = "[Syntax: line:%F (%t)]"  " default

image

Frederick888 commented 3 years ago

Hmm... I should probably make error and warning icons of ALE & Syntastic configurable, and default values of them g:ale_sign_error g:ale_sign_warning g:syntastic_error_symbol g:syntastic_warning_symbol respectively?

liuchengxu commented 3 years ago

Thanks for the contribution, but honestly, I'm reluctant to merge this in as syntastic is basically a product of the era before the async job, not sure how many users of eleline.vim are using it.

Frederick888 commented 3 years ago

@liuchengxu Makes sense. I was trying to getting some checkstyle warnings in Vim and later also switched to ALE.