mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:50:06 +08:00
Fix denite ignore
This commit is contained in:
parent
fd5d6b780c
commit
19f86e0d74
@ -272,7 +272,7 @@ fu! zvim#util#Generate_ignore(ignore,tool) abort
|
|||||||
if a:tool ==# 'ag'
|
if a:tool ==# 'ag'
|
||||||
for ig in split(a:ignore,',')
|
for ig in split(a:ignore,',')
|
||||||
call add(ignore, '--ignore')
|
call add(ignore, '--ignore')
|
||||||
call add(ignore, '"' . ig . '"')
|
call add(ignore, ig )
|
||||||
endfor
|
endfor
|
||||||
elseif a:tool ==# 'rg'
|
elseif a:tool ==# 'rg'
|
||||||
for ig in split(a:ignore,',')
|
for ig in split(a:ignore,',')
|
||||||
|
@ -35,7 +35,9 @@ if !s:sys.isWindows
|
|||||||
if executable('ag')
|
if 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', '--follow', '--nocolor', '--nogroup', '-g', ''])
|
\ ['ag' , '--nocolor', '--nogroup', '-g', '']
|
||||||
|
\ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'ag')
|
||||||
|
\ )
|
||||||
elseif executable('rg')
|
elseif executable('rg')
|
||||||
" For ripgrep
|
" For ripgrep
|
||||||
" Note: It is slower than ag
|
" Note: It is slower than ag
|
||||||
@ -107,5 +109,5 @@ endfor
|
|||||||
|
|
||||||
unlet s:m s:insert_mode_mappings s:normal_mode_mappings
|
unlet s:m s:insert_mode_mappings s:normal_mode_mappings
|
||||||
|
|
||||||
" vim: set ts=2 sw=2 tw=80 noet :
|
|
||||||
|
|
||||||
|
" vim:set et sw=2 cc=80:
|
||||||
|
Loading…
Reference in New Issue
Block a user