mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-17 13:59:41 +08:00
introduce parts metadata.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user