autocmd FileType * call lightline#update() (instead of update_once: previously, does not work for NERDTree)

This commit is contained in:
itchyny
2013-08-23 15:22:16 +09:00
parent 3a6c739465
commit b2bbecea6b

View File

@@ -3,7 +3,7 @@
" Version: 0.0 " Version: 0.0
" Author: itchyny " Author: itchyny
" License: MIT License " License: MIT License
" Last Change: 2013/08/23 14:27:31. " Last Change: 2013/08/23 15:19:31.
" ============================================================================= " =============================================================================
if exists('g:loaded_lightline') && g:loaded_lightline if exists('g:loaded_lightline') && g:loaded_lightline
@@ -16,8 +16,8 @@ set cpo&vim
augroup LightLine augroup LightLine
autocmd! autocmd!
autocmd ColorScheme * call lightline#highlight() autocmd ColorScheme * call lightline#highlight()
autocmd WinEnter,BufWinEnter * call lightline#update() autocmd WinEnter,BufWinEnter,FileType * call lightline#update()
autocmd CursorMoved,FileType,BufUnload * call lightline#update_once() autocmd CursorMoved,BufUnload * call lightline#update_once()
augroup END augroup END
let g:loaded_lightline = 1 let g:loaded_lightline = 1