mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-01 12:56:48 +08:00
improve documentation for writing extensions, also add helper methods.
This commit is contained in:
@@ -54,10 +54,7 @@ function! airline#extensions#whitespace#check()
|
||||
endfunction!
|
||||
|
||||
function! airline#extensions#whitespace#apply(...)
|
||||
if !exists('w:airline_section_warning')
|
||||
let w:airline_section_warning = ' '
|
||||
endif
|
||||
let w:airline_section_warning .= '%{airline#extensions#whitespace#check()}'
|
||||
call airline#extensions#append_to_section('warning', ' %{airline#extensions#whitespace#check()}')
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#whitespace#toggle()
|
||||
|
||||
Reference in New Issue
Block a user