mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-13 05:53:51 -05:00
remove arguments
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/24 18:23:47.
|
" Last Change: 2013/08/24 19:16:30.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -12,9 +12,8 @@ set cpo&vim
|
|||||||
let s:_ = 1
|
let s:_ = 1
|
||||||
let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running')
|
let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running')
|
||||||
|
|
||||||
function! lightline#update(hi)
|
function! lightline#update()
|
||||||
if s:_ | call lightline#init() | endif
|
if s:_ | call lightline#init() | endif
|
||||||
if a:hi | call lightline#highlight() | endif
|
|
||||||
let s = [lightline#statusline(0), lightline#statusline(1)]
|
let s = [lightline#statusline(0), lightline#statusline(1)]
|
||||||
let w = winnr()
|
let w = winnr()
|
||||||
for n in range(1, winnr('$'))
|
for n in range(1, winnr('$'))
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
" Version: 0.0
|
" Version: 0.0
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2013/08/24 18:22:31.
|
" Last Change: 2013/08/24 19:19:13.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
if exists('g:loaded_lightline') && g:loaded_lightline
|
if exists('g:loaded_lightline') && g:loaded_lightline
|
||||||
@@ -15,8 +15,8 @@ set cpo&vim
|
|||||||
|
|
||||||
augroup LightLine
|
augroup LightLine
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd ColorScheme * call lightline#update(1)
|
autocmd WinEnter,BufWinEnter,FileType,ColorScheme * call lightline#update()
|
||||||
autocmd WinEnter,BufWinEnter,FileType * call lightline#update(0)
|
autocmd ColorScheme * call lightline#highlight()
|
||||||
autocmd CursorMoved,BufUnload * call lightline#update_once()
|
autocmd CursorMoved,BufUnload * call lightline#update_once()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user