mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:30:06 +08:00
Use rg in denite by default
This commit is contained in:
parent
19f86e0d74
commit
9b30006891
@ -32,17 +32,19 @@ call denite#custom#var(
|
|||||||
|
|
||||||
" denite command
|
" denite command
|
||||||
if !s:sys.isWindows
|
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.
|
" Change file_rec command.
|
||||||
call denite#custom#var('file_rec', 'command',
|
call denite#custom#var('file_rec', 'command',
|
||||||
\ ['ag' , '--nocolor', '--nogroup', '-g', '']
|
\ ['ag' , '--nocolor', '--nogroup', '-g', '']
|
||||||
\ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'ag')
|
\ + 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
|
endif
|
||||||
else
|
else
|
||||||
if executable('pt')
|
if executable('pt')
|
||||||
|
Loading…
Reference in New Issue
Block a user