1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00

rg doesn't need --no-ignore options (#3446)

This commit is contained in:
SwenChan 2020-04-13 15:55:57 +08:00 committed by GitHub
parent 9f6546b71c
commit d084fb4b30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ let g:ctrlp_custom_ignore = get(g:, 'ctrlp_custom_ignore', {
\ 'link': 'some_bad_symbolic_links',
\ })
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 --hidden --files -g "" '
\ . join(SpaceVim#util#Generate_ignore(get(g:, 'spacevim_wildignore', ''),'rg', SpaceVim#api#import('system').isWindows ? 0 : 1))
elseif executable('ag') && !exists('g:ctrlp_user_command')
let g:ctrlp_user_command = 'ag --hidden -i -g "" ' . join(SpaceVim#util#Generate_ignore(g:spacevim_wildignore,'ag')) . ' %s'