Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
83 lines
2.8 KiB
VimL
83 lines
2.8 KiB
VimL
" MIT License. Copyright (c) 2013-2019 Bailey Ling et al.
|
|
" Plugin: https://github.com/ctrlpvim/ctrlp.vim
|
|
" vim: et ts=2 sts=2 sw=2
|
|
|
|
scriptencoding utf-8
|
|
|
|
if !get(g:, 'loaded_ctrlp', 0)
|
|
finish
|
|
endif
|
|
|
|
let s:color_template = get(g:, 'airline#extensions#ctrlp#color_template', 'insert')
|
|
|
|
function! airline#extensions#ctrlp#generate_color_map(dark, light, white)
|
|
return {
|
|
\ 'CtrlPdark' : a:dark,
|
|
\ 'CtrlPlight' : a:light,
|
|
\ 'CtrlPwhite' : a:white,
|
|
\ 'CtrlParrow1' : [ a:light[1] , a:white[1] , a:light[3] , a:white[3] , '' ] ,
|
|
\ 'CtrlParrow2' : [ a:white[1] , a:light[1] , a:white[3] , a:light[3] , '' ] ,
|
|
\ 'CtrlParrow3' : [ a:light[1] , a:dark[1] , a:light[3] , a:dark[3] , '' ] ,
|
|
\ }
|
|
endfunction
|
|
|
|
function! airline#extensions#ctrlp#load_theme(palette)
|
|
if exists('a:palette.ctrlp')
|
|
let theme = a:palette.ctrlp
|
|
else
|
|
let s:color_template = has_key(a:palette, s:color_template) ? s:color_template : 'insert'
|
|
let theme = airline#extensions#ctrlp#generate_color_map(
|
|
\ a:palette[s:color_template]['airline_c'],
|
|
\ a:palette[s:color_template]['airline_b'],
|
|
\ a:palette[s:color_template]['airline_a'])
|
|
endif
|
|
for key in keys(theme)
|
|
call airline#highlighter#exec(key, theme[key])
|
|
endfor
|
|
endfunction
|
|
|
|
" Arguments: focus, byfname, regexp, prv, item, nxt, marked
|
|
function! airline#extensions#ctrlp#ctrlp_airline(...)
|
|
let b = airline#builder#new({'active': 1})
|
|
if a:2 == 'file'
|
|
call b.add_section_spaced('CtrlPlight', 'by fname')
|
|
endif
|
|
if a:3
|
|
call b.add_section_spaced('CtrlPlight', 'regex')
|
|
endif
|
|
if get(g:, 'airline#extensions#ctrlp#show_adjacent_modes', 1)
|
|
call b.add_section_spaced('CtrlPlight', a:4)
|
|
call b.add_section_spaced('CtrlPwhite', a:5)
|
|
call b.add_section_spaced('CtrlPlight', a:6)
|
|
else
|
|
call b.add_section_spaced('CtrlPwhite', a:5)
|
|
endif
|
|
call b.add_section_spaced('CtrlPdark', a:7)
|
|
call b.split()
|
|
call b.add_section_spaced('CtrlPdark', a:1)
|
|
call b.add_section_spaced('CtrlPdark', a:2)
|
|
call b.add_section_spaced('CtrlPlight', '%{getcwd()}')
|
|
return b.build()
|
|
endfunction
|
|
|
|
" Argument: len
|
|
function! airline#extensions#ctrlp#ctrlp_airline_status(...)
|
|
let len = '%#CtrlPdark# '.a:1
|
|
let dir = '%=%<%#CtrlParrow3#'.g:airline_right_sep.'%#CtrlPlight# '.getcwd().' %*'
|
|
return len.dir
|
|
endfunction
|
|
|
|
function! airline#extensions#ctrlp#apply(...)
|
|
" disable statusline overwrite if ctrlp already did it
|
|
return match(&statusline, 'CtrlPwhite') >= 0 ? -1 : 0
|
|
endfunction
|
|
|
|
function! airline#extensions#ctrlp#init(ext)
|
|
let g:ctrlp_status_func = {
|
|
\ 'main': 'airline#extensions#ctrlp#ctrlp_airline',
|
|
\ 'prog': 'airline#extensions#ctrlp#ctrlp_airline_status',
|
|
\ }
|
|
call a:ext.add_statusline_func('airline#extensions#ctrlp#apply')
|
|
call a:ext.add_theme_func('airline#extensions#ctrlp#load_theme')
|
|
endfunction
|