mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:30:04 +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'
|
||||
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,',')
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user