1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 12:00:05 +08:00
This commit is contained in:
wsdjeg 2017-03-28 23:46:06 +08:00
parent 3198d312d5
commit 356d362eb3

View File

@ -16,13 +16,15 @@ let g:ctrlp_custom_ignore = {
\ 'file': '\v\.(exe|so|dll|ttf|png|gif|jpe?g|bpm)$|\-rplugin\~', \ 'file': '\v\.(exe|so|dll|ttf|png|gif|jpe?g|bpm)$|\-rplugin\~',
\ 'link': 'some_bad_symbolic_links', \ 'link': 'some_bad_symbolic_links',
\ } \ }
if executable('rg') if executable('rg') && !exists('g:ctrlp_user_command')
let g:ctrlp_user_command = 'rg %s --no-ignore --hidden --files -g "" ' let g:ctrlp_user_command = 'rg %s --no-ignore --hidden --files -g "" '
\ . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'rg')) \ . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'rg'))
elseif executable('ag') elseif executable('ag') && !exists('g:ctrlp_user_command')
let g:ctrlp_user_command = 'ag %s --hidden -i -g "" ' . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'ag')) let g:ctrlp_user_command = 'ag %s --hidden -i -g "" ' . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'ag'))
endif endif
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' } if !exists('g:ctrlp_match_func') && (has('python') || has('python3'))
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
endif
"nnoremap <Leader>kk :CtrlPMixed<Cr> "nnoremap <Leader>kk :CtrlPMixed<Cr>
" comment for ctrlp-funky {{{ " comment for ctrlp-funky {{{
nnoremap <Leader>fu :CtrlPFunky<Cr> nnoremap <Leader>fu :CtrlPFunky<Cr>