Use ripgrep instead of thesilversearcher
This commit is contained in:
parent
ff70755af6
commit
8bb15dcaa3
@ -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 <Leader>\ :Ack<Space>
|
||||
noremap <Leader><Tab> :Ack <C-r><C-w><CR>
|
||||
|
||||
" 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user