mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-08-03 06:28:31 +08:00
git: enable gitrepo path style, displaying repo:/path/ instead
fixes: #2505 closes: #2507 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -199,6 +199,8 @@ function! airline#init#bootstrap()
|
||||
\ })
|
||||
if get(g:, 'airline_section_c_only_filename',0)
|
||||
call airline#parts#define_raw('file', '%t%m')
|
||||
elseif get(g:, 'airline_stl_path_style', 'default') ==# 'gitrepo'
|
||||
call airline#parts#define_function('file', 'airline#parts#gitrepo')
|
||||
else
|
||||
call airline#parts#define_raw('file', airline#formatter#short_path#format('%f%m'))
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user