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 5afa59e5d4
commit 6e1288c95c
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
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(