mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-15 15:03:51 -05:00
autocmd FileType * call lightline#update() (instead of update_once: previously, does not work for NERDTree)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user