improve documentation for writing extensions, also add helper methods.

This commit is contained in:
Bailey Ling committed 2013-08-25 15:39:14 +00:00
1 parent 9ca2aa9a8c
commit a91dda01df
5 files changed
+49 -37

No files matched your search

+1 -4
View File
@@ -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()