Make every FZF command use ripgrep
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
662d63a3c8
commit
239de02dc7
3 changed files with 15 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue