2021-08-05 10:50:26 -05:00
|
|
|
if executable('rg')
|
|
|
|
let g:ackprg = 'rg --vimgrep --no-heading' " Use ripgrep for Ack
|
2021-06-16 16:30:55 -05:00
|
|
|
|
2021-07-12 15:50:27 -05:00
|
|
|
noremap <Leader>\ :Ack<Space>
|
|
|
|
noremap <Leader><Tab> :Ack <C-r><C-w><CR>
|
2021-07-07 13:28:00 -05:00
|
|
|
|
2021-08-05 10:50:26 -05:00
|
|
|
" Use rg over grep
|
2021-08-05 10:51:54 -05:00
|
|
|
set grepprg=rg\ --color\ never
|
2021-07-07 13:28:00 -05:00
|
|
|
|
2021-08-05 10:50:26 -05:00
|
|
|
" 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'
|
2021-07-07 13:28:00 -05:00
|
|
|
endif
|