Browse Source

Add neovim settings for unite

Thomas Dy 9 years ago
parent
commit
10410eff43
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .vimrc

+ 2 - 0
.vimrc

@@ -15,6 +15,7 @@ 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', '']
 autocmd FileType unite call s:unite_settings()
 function! s:unite_settings()
   " Enable navigation with control-j and control-k in insert mode
@@ -81,6 +82,7 @@ nnoremap <C-O> :Unite -no-split -buffer-name=buffers -start-insert buffer<cr>
 if has('nvim')
   tnoremap jj <C-\><C-N>
   tnoremap <C-W> <C-\><C-N><C-W>
+  nnoremap <C-P> :Unite -no-split -buffer-name=files -start-insert file_rec/neovim<cr>
 endif
 
 augroup formatting