mirror of
https://github.com/amix/vimrc
synced 2025-06-17 10:55:00 +08:00
Updated plugins
This commit is contained in:
@ -18,3 +18,5 @@ endfunction
|
||||
function! SID(name) abort
|
||||
return function(printf("\<SNR>%d_%s", s:sid('autoload/lightline.vim'), a:name))
|
||||
endfunction
|
||||
|
||||
filetype plugin on
|
||||
|
19
sources_non_forked/lightline.vim/test/popup.vim
Normal file
19
sources_non_forked/lightline.vim/test/popup.vim
Normal file
@ -0,0 +1,19 @@
|
||||
if !exists('*popup_menu') || !exists('*win_execute')
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:suite = themis#suite('popup')
|
||||
let s:assert = themis#helper('assert')
|
||||
|
||||
function! s:suite.before_each()
|
||||
let g:lightline = {}
|
||||
call lightline#init()
|
||||
tabnew
|
||||
tabonly
|
||||
endfunction
|
||||
|
||||
function! s:suite.win_execute_setfiletype()
|
||||
let id = popup_menu(['aaa', 'bbb'], {})
|
||||
call win_execute(id, 'setfiletype vim')
|
||||
call popup_close(id)
|
||||
endfunction
|
25
sources_non_forked/lightline.vim/test/quickfix.vim
Normal file
25
sources_non_forked/lightline.vim/test/quickfix.vim
Normal file
@ -0,0 +1,25 @@
|
||||
let s:suite = themis#suite('quickfix')
|
||||
let s:assert = themis#helper('assert')
|
||||
|
||||
function! s:suite.before_each()
|
||||
let g:lightline = {}
|
||||
call lightline#init()
|
||||
tabnew
|
||||
tabonly
|
||||
endfunction
|
||||
|
||||
function! s:suite.quickfix_statusline()
|
||||
call setloclist(winnr(), [])
|
||||
lopen
|
||||
wincmd p
|
||||
call setloclist(winnr(), [])
|
||||
for n in range(1, winnr('$'))
|
||||
let statusline = getwinvar(n, '&statusline')
|
||||
call s:assert.match(statusline, 'lightline')
|
||||
if has('patch-8.1.1715')
|
||||
call s:assert.match(statusline, n == 1 ? '_active_' : '_inactive_')
|
||||
else
|
||||
call s:assert.match(statusline, n != 1 ? '_active_' : '_inactive_')
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
Reference in New Issue
Block a user