Make every FZF command use ripgrep

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2020-01-09 15:10:28 +02:00
parent 662d63a3c8
commit 239de02dc7
3 changed files with 15 additions and 4 deletions

View file

@ -36,6 +36,14 @@ let g:fzf_layout = { 'window': 'call FloatingFZF()' }
nmap <C-f> :Files<CR>
nmap <C-g> :Rg<CR>
" Files command customization
command! -bang -nargs=* Rg
\ call fzf#vim#files(
\ 'rg --files --hidden 2>/dev/null'.shellescape(<q-args>), 1,
\ <bang>0 ? fzf#vim#with_preview('up:60%')
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
\ <bang>0)
" Ripgrep command customization
command! -bang -nargs=* Rg
\ call fzf#vim#grep(