introduce parts metadata.

This commit is contained in:
Bailey Ling
2013-08-30 21:51:10 +00:00
parent a927bf9475
commit fa517238c7
6 changed files with 49 additions and 55 deletions
+1 -1
View File
@@ -31,6 +31,6 @@ function! airline#extensions#branch#get_head()
endfunction
function! airline#extensions#branch#init(ext)
let g:airline_parts.branch = 'airline#extensions#branch#get_head'
call airline#parts#define_function('branch', 'airline#extensions#branch#get_head')
endfunction
+2 -1
View File
@@ -14,5 +14,6 @@ function! airline#extensions#bufferline#init(ext)
let g:bufferline_separator = ' '
endif
let g:airline_parts.file = '%{bufferline#refresh_status()}'.bufferline#get_status_string()
call airline#parts#define_raw('file', '%{bufferline#refresh_status()}'.bufferline#get_status_string())
endfunction
+1 -1
View File
@@ -54,6 +54,6 @@ function! airline#extensions#hunks#get_hunks()
endfunction
function! airline#extensions#hunks#init(ext)
let g:airline_parts.hunks = 'airline#extensions#hunks#get_hunks'
call airline#parts#define_function('hunks', 'airline#extensions#hunks#get_hunks')
endfunction