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:
parent
78baf5517a
commit
8b93c05d28
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,9 @@ if has('nvim') && get(g:, 'fzf_nvim_statusline', 1)
|
|||
function! s:fzf_nvim_term()
|
||||
if get(w:, 'airline_active', 0)
|
||||
let w:airline_disabled = 1
|
||||
autocmd BufWinLeave <buffer> let w:airline_disabled = 0
|
||||
endif
|
||||
autocmd WinEnter,ColorScheme <buffer> call s:fzf_restore_colors()
|
||||
|
||||
setlocal nospell
|
||||
call s:fzf_restore_colors()
|
||||
|
@ -106,7 +108,6 @@ if has('nvim') && get(g:, 'fzf_nvim_statusline', 1)
|
|||
augroup _fzf_statusline
|
||||
autocmd!
|
||||
autocmd FileType fzf call s:fzf_nvim_term()
|
||||
\| autocmd WinEnter,ColorScheme <buffer> call s:fzf_restore_colors()
|
||||
augroup END
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue