mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-23 01:58:26 +08:00
Show buffer name relative to git folder
This commit is contained in:
@@ -229,6 +229,12 @@ function! airline#extensions#load()
|
||||
call add(loaded_ext, 'bufferline')
|
||||
endif
|
||||
|
||||
if get(g:, 'airline#extensions#fugitiveline#enabled', 1)
|
||||
\ && exists('*fugitive#head')
|
||||
call airline#extensions#fugitiveline#init(s:ext)
|
||||
call add(loaded_ext, 'fugitiveline')
|
||||
endif
|
||||
|
||||
if (get(g:, 'airline#extensions#virtualenv#enabled', 1) && (exists(':VirtualEnvList') || isdirectory($VIRTUAL_ENV)))
|
||||
call airline#extensions#virtualenv#init(s:ext)
|
||||
call add(loaded_ext, 'virtualenv')
|
||||
|
||||
Reference in New Issue
Block a user