mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:10:05 +08:00
Update denite config
This commit is contained in:
parent
f8c8b4b687
commit
302473e30a
@ -1 +1,20 @@
|
|||||||
let g:denite_config_loaded = 1
|
let s:sys = SpaceVim#api#import('system')
|
||||||
|
if !s:sys.isWindows
|
||||||
|
if executable('ag')
|
||||||
|
" Change file_rec command.
|
||||||
|
call denite#custom#var('file_rec', 'command',
|
||||||
|
\ ['ag', '--follow', '--nocolor', '--nogroup', '-g', ''])
|
||||||
|
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')
|
||||||
|
" For Pt(the platinum searcher)
|
||||||
|
" NOTE: It also supports windows.
|
||||||
|
call denite#custom#var('file_rec', 'command',
|
||||||
|
\ ['pt', '--follow', '--nocolor', '--nogroup', '-g:', ''])
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user