mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 04:54:44 +08:00
Support fzf and fzf.vim
Adds a slightly nicer statusline for the terminal buffers created by the fzf and fzf.vim plugins. https://github.com/junegunn/fzf https://github.com/junegunn/fzf.vim
This commit is contained in:
@@ -170,6 +170,12 @@ function! airline#extensions#load()
|
||||
call add(s:loaded_ext, 'netrw')
|
||||
endif
|
||||
|
||||
" fzf buffers are also terminal buffers, so this must be above term.
|
||||
if exists(':FZF') && get(g:, 'airline#extensions#fzf#enabled', 1)
|
||||
call airline#extensions#fzf#init(s:ext)
|
||||
call add(s:loaded_ext, 'fzf')
|
||||
endif
|
||||
|
||||
if (has("terminal") || has('nvim')) &&
|
||||
\ get(g:, 'airline#extensions#term#enabled', 1)
|
||||
call airline#extensions#term#init(s:ext)
|
||||
|
||||
Reference in New Issue
Block a user