diff --git a/autoload/zvim/util.vim b/autoload/zvim/util.vim index 139a20f91..acf50e8be 100644 --- a/autoload/zvim/util.vim +++ b/autoload/zvim/util.vim @@ -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,',') diff --git a/config/plugins/denite.vim b/config/plugins/denite.vim index 250557ade..a6b7dc5d0 100644 --- a/config/plugins/denite.vim +++ b/config/plugins/denite.vim @@ -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: