mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-08-03 06:28:31 +08:00
whitespace: support multiline statusline for warnings
Add a new airline_section_warning2 that displays whitespace warnings on a second statusline line when Vim supports the statuslineopt option (Vim 9.2.0083+) and g:airline_multiline is set. The second line only appears when there are actual whitespace issues, avoiding an empty second line when the buffer is clean. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
7fe264257e
commit
ee44d57525
@@ -6,7 +6,7 @@ scriptencoding utf-8
|
||||
let g:airline_statusline_funcrefs = get(g:, 'airline_statusline_funcrefs', [])
|
||||
let g:airline_inactive_funcrefs = get(g:, 'airline_inactive_statusline_funcrefs', [])
|
||||
|
||||
let s:sections = ['a','b','c','gutter','x','y','z', 'error', 'warning']
|
||||
let s:sections = ['a','b','c','gutter','x','y','z', 'error', 'warning', 'warning2']
|
||||
let s:contexts = {}
|
||||
let s:core_funcrefs = [
|
||||
\ function('airline#extensions#apply'),
|
||||
|
||||
Reference in New Issue
Block a user