1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:30:05 +08:00

Use rg in denite by default

This commit is contained in:
wsdjeg 2017-03-21 21:55:15 +08:00
parent 19f86e0d74
commit 9b30006891

View File

@ -32,17 +32,19 @@ call denite#custom#var(
" denite command
if !s:sys.isWindows
if executable('ag')
if executable('rg')
" For ripgrep
" Note: It is slower than ag
call denite#custom#var('file_rec', 'command',
\ ['rg', '--files', '--glob', '!.git', '']
\ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'rg')
\ )
elseif executable('ag')
" Change file_rec command.
call denite#custom#var('file_rec', 'command',
\ ['ag' , '--nocolor', '--nogroup', '-g', '']
\ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'ag')
\ )
elseif executable('rg')
" For ripgrep
" Note: It is slower than ag
call denite#custom#var('file_rec', 'command',
\ ['rg', '--files', '--glob', '!.git', ''])
endif
else
if executable('pt')