mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-11 15:39:11 +08:00
improve undotree integration; use exposed statusline functions.
This commit is contained in:
1 parent
7e563f9c74
commit
9d65486063
2 files changed
+25
-1
No files matched your search
@@ -14,7 +14,6 @@ let s:filetype_overrides = {
|
||||
\ 'netrw': [ 'netrw', '%f' ],
|
||||
\ 'unite': [ 'Unite', '%{unite#get_status_string()}' ],
|
||||
\ 'nerdtree': [ 'NERD', '' ],
|
||||
\ 'undotree': [ 'undotree', '' ],
|
||||
\ 'gundo': [ 'Gundo', '' ],
|
||||
\ 'diff': [ 'diff', '' ],
|
||||
\ 'vimfiler': [ 'vimfiler', '%{vimfiler#get_status_string()}' ],
|
||||
@@ -125,6 +124,10 @@ function! airline#extensions#load()
|
||||
call airline#extensions#commandt#init(s:ext)
|
||||
endif
|
||||
|
||||
if exists(':UndotreeToggle')
|
||||
call airline#extensions#undotree#init(s:ext)
|
||||
endif
|
||||
|
||||
if g:airline_enable_tagbar && exists(':TagbarToggle')
|
||||
call airline#extensions#tagbar#init(s:ext)
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user