mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 19:37:34 +00:00
Add support for rg FZF search through file text
This commit is contained in:
parent
54d9793902
commit
348d2fabc6
@ -28,7 +28,11 @@ if !exists('g:ctrlp_in_use')
|
|||||||
nnoremap <leader>b :FZFBuffers<CR>
|
nnoremap <leader>b :FZFBuffers<CR>
|
||||||
nnoremap <silent> <F2> :FZFBuffers<CR>
|
nnoremap <silent> <F2> :FZFBuffers<CR>
|
||||||
" Find text in files
|
" 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
|
" Find tags
|
||||||
nnoremap <leader>r :FZFTags<CR>
|
nnoremap <leader>r :FZFTags<CR>
|
||||||
" Find buffer tags
|
" Find buffer tags
|
||||||
|
Loading…
Reference in New Issue
Block a user