mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
Make sure to reenable airline when enew layout is used
Close #175 Interestingly, BufUnload, BufDelete, or BufWipeout doesn't work. Related: - #173 - https://github.com/neovim/neovim/issues/2368
This commit is contained in:
@@ -97,7 +97,9 @@ if has('nvim') && get(g:, 'fzf_nvim_statusline', 1)
|
|||||||
function! s:fzf_nvim_term()
|
function! s:fzf_nvim_term()
|
||||||
if get(w:, 'airline_active', 0)
|
if get(w:, 'airline_active', 0)
|
||||||
let w:airline_disabled = 1
|
let w:airline_disabled = 1
|
||||||
|
autocmd BufWinLeave <buffer> let w:airline_disabled = 0
|
||||||
endif
|
endif
|
||||||
|
autocmd WinEnter,ColorScheme <buffer> call s:fzf_restore_colors()
|
||||||
|
|
||||||
setlocal nospell
|
setlocal nospell
|
||||||
call s:fzf_restore_colors()
|
call s:fzf_restore_colors()
|
||||||
@@ -106,7 +108,6 @@ if has('nvim') && get(g:, 'fzf_nvim_statusline', 1)
|
|||||||
augroup _fzf_statusline
|
augroup _fzf_statusline
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType fzf call s:fzf_nvim_term()
|
autocmd FileType fzf call s:fzf_nvim_term()
|
||||||
\| autocmd WinEnter,ColorScheme <buffer> call s:fzf_restore_colors()
|
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user