denite: remove FileType autocommand

closes #1540
This commit is contained in:
Christian Brabandt 2017-08-25 07:44:39 +02:00
parent ab6acdee41
commit 9bd2c40e7d
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -35,13 +35,5 @@ endfunction
function! airline#extensions#denite#init(ext)
call denite#custom#option('_', 'statusline', 0)
call a:ext.add_statusline_func('airline#extensions#denite#apply')
" airline#extensions#denite#apply normally gets called only after the
" denite window gets closed, so we have to call airline#update_statusline
" ourselves to make sure it's applied when the window is opened.
augroup airline_denite
autocmd!
autocmd FileType denite call airline#update_statusline()
augroup END
endfunction