From 0c61f7241f816a9d0c73c81ae914975ceb224fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 2 May 2020 11:21:12 +0100 Subject: [PATCH] use rga instead of rg in vim --- .vimrc.plugins-settings | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.vimrc.plugins-settings b/.vimrc.plugins-settings index 89d109b6..15529567 100644 --- a/.vimrc.plugins-settings +++ b/.vimrc.plugins-settings @@ -9,11 +9,12 @@ au BufWrite * :Autoformat let g:rustfmt_autosave = 1 " searching -let $FZF_DEFAULT_COMMAND = 'rg --files --no-messages "" .' -set grepprg=rg\ --vimgrep +let $FZF_DEFAULT_COMMAND = 'rga --files --no-messages "" .' +set grepprg=rga\ --vimgrep let g:fzf_command_prefix = 'Fzf' -command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(), 1, 0) +command! -bang -nargs=* Find call fzf#vim#grep('rga --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(), 1, 0) let g:ctrlp_show_hidden = 1 +let g:ctrlp_user_command = 'rga %s --files --hidden --color=never --glob ""' " nerdtree startup autocmd StdinReadPre * let s:std_in=1