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:
Christian Brabandt
2026-04-12 08:04:38 +00:00
parent c52bb3dd32
commit 081f8ac918
3 changed files with 29 additions and 0 deletions
+2
View File
@@ -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