From 8bb15dcaa3a64f56f54bd7c4b0ed9523e9570d34 Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Thu, 5 Aug 2021 10:50:26 -0500 Subject: [PATCH] Use ripgrep instead of thesilversearcher --- nvim/ack.vimrc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nvim/ack.vimrc b/nvim/ack.vimrc index 438900b..a28de02 100644 --- a/nvim/ack.vimrc +++ b/nvim/ack.vimrc @@ -1,12 +1,15 @@ -if executable('ag') - let g:ackprg = 'ag --vimgrep --smart-case' " Use the_silver_searcher for Ack +if executable('rg') + let g:ackprg = 'rg --vimgrep --no-heading' " Use ripgrep for Ack noremap \ :Ack noremap :Ack - " Use Ag over Grep - set grepprg=ag\ --nogroup\ --nocolor + " Use rg over grep + set grepprg='rg --color never' - " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore - let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' + " Use rg in CtrlP for listing files. Lightning fast and respects .gitignore + let g:ctrlp_user_command = 'rg --files %s' + let g:ctrlp_use_caching = 0 + let g:ctrlp_working_path_mode = 'ra' + let g:ctrlp_switch_buffer = 'et' endif