mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-26 19:47:11 +08:00
convert branch/hunks/bufferline to function names.
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()}'
|
||||
let g:airline_parts.branch = 'airline#extensions#branch#get_head'
|
||||
endfunction
|
||||
|
||||
|
||||
@@ -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()}'
|
||||
let g:airline_parts.hunks = 'airline#extensions#hunks#get_hunks'
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user