Add support for rg FZF search through file text

This commit is contained in:
ViViDboarder 2019-11-01 15:07:19 -07:00
parent 54d9793902
commit 348d2fabc6
1 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,11 @@ if !exists('g:ctrlp_in_use')
nnoremap <leader>b :FZFBuffers<CR>
nnoremap <silent> <F2> :FZFBuffers<CR>
" Find text in files
nnoremap <leader>f :FZFAg<CR>
if executable('rg')
nnoremap <leader>f :FZFRg<CR>
elseif executable('ag')
nnoremap <leader>f :FZFAg<CR>
endif
" Find tags
nnoremap <leader>r :FZFTags<CR>
" Find buffer tags