90619ab253
subrepo: subdir: "dotfiles/.vim/plugged/lightline.vim" merged: "b1e91b41" upstream: origin: "https://github.com/itchyny/lightline.vim.git" branch: "master" commit: "b1e91b41" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
33 lines
1.1 KiB
VimL
33 lines
1.1 KiB
VimL
" =============================================================================
|
|
" Filename: plugin/lightline.vim
|
|
" Author: itchyny
|
|
" License: MIT License
|
|
" Last Change: 2021/11/21 22:54:41.
|
|
" =============================================================================
|
|
|
|
if exists('g:loaded_lightline') || v:version < 703
|
|
finish
|
|
endif
|
|
let g:loaded_lightline = 1
|
|
|
|
let s:save_cpo = &cpo
|
|
set cpo&vim
|
|
|
|
augroup lightline
|
|
autocmd!
|
|
autocmd WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost * call lightline#update()
|
|
if !has('patch-8.1.1715')
|
|
autocmd FileType qf call lightline#update()
|
|
endif
|
|
autocmd SessionLoadPost * call lightline#highlight()
|
|
autocmd ColorScheme * if !has('vim_starting') || expand('<amatch>') !=# 'macvim'
|
|
\ | call lightline#update() | call lightline#highlight() | endif
|
|
augroup END
|
|
|
|
" This quickfix option was introduced at Vim 85850f3a5ef9, which is the commit
|
|
" just before 8.1.1715. Before this patch, autocmd FileType is required to
|
|
" overwrite the statusline of the quickfix and location windows.
|
|
let g:qf_disable_statusline = 1
|
|
|
|
let &cpo = s:save_cpo
|
|
unlet s:save_cpo
|