|
@@ -15,7 +15,13 @@ call plug#end()
|
|
|
let g:signify_vcs_list = [ 'git' ]
|
|
|
|
|
|
call unite#filters#matcher_default#use(['matcher_fuzzy'])
|
|
|
-let g:unite_source_rec_async_command = ['ag', '--follow', '--nocolor', '--nogroup', '-g', '']
|
|
|
+
|
|
|
+" use ag if present
|
|
|
+if executable('ag')
|
|
|
+ " we run a wrapper around ag so it respects agignore
|
|
|
+ let g:unite_source_rec_async_command = ['sh', expand('~/.vim/ag-unite')]
|
|
|
+endif
|
|
|
+
|
|
|
autocmd FileType unite call s:unite_settings()
|
|
|
function! s:unite_settings()
|
|
|
" Enable navigation with control-j and control-k in insert mode
|