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

Fix denite ignore

This commit is contained in:
wsdjeg 2017-03-21 21:06:49 +08:00
parent fd5d6b780c
commit 19f86e0d74
2 changed files with 5 additions and 3 deletions

View File

@ -272,7 +272,7 @@ fu! zvim#util#Generate_ignore(ignore,tool) abort
if a:tool ==# 'ag'
for ig in split(a:ignore,',')
call add(ignore, '--ignore')
call add(ignore, '"' . ig . '"')
call add(ignore, ig )
endfor
elseif a:tool ==# 'rg'
for ig in split(a:ignore,',')

View File

@ -35,7 +35,9 @@ if !s:sys.isWindows
if executable('ag')
" Change 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')
" For ripgrep
" Note: It is slower than ag
@ -107,5 +109,5 @@ endfor
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: