Rg in file for vim
This commit is contained in:
parent
c3b2c9ad34
commit
2e4d73806f
|
@ -229,7 +229,7 @@ let RG_TEMPLATE = 'rg --hidden --no-ignore --follow '
|
||||||
let $FZF_DEFAULT_COMMAND = RG_TEMPLATE . '--files '
|
let $FZF_DEFAULT_COMMAND = RG_TEMPLATE . '--files '
|
||||||
|
|
||||||
" Use ripgrep with fzf (from Jonhoo)
|
" Use ripgrep with fzf (from Jonhoo)
|
||||||
noremap <leader>s :Rg<CR>
|
noremap <leader>S :Rg<CR>
|
||||||
command! -bang -nargs=* Rg
|
command! -bang -nargs=* Rg
|
||||||
\ call fzf#vim#grep(
|
\ call fzf#vim#grep(
|
||||||
\ RG_TEMPLATE
|
\ RG_TEMPLATE
|
||||||
|
@ -239,6 +239,8 @@ command! -bang -nargs=* Rg
|
||||||
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
|
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
|
||||||
\ <bang>0)
|
\ <bang>0)
|
||||||
|
|
||||||
|
noremap <leader>s :BLines <CR>
|
||||||
|
|
||||||
" FZF colors match vim colorscheme
|
" FZF colors match vim colorscheme
|
||||||
let g:fzf_colors =
|
let g:fzf_colors =
|
||||||
\ { 'fg': ['fg', 'Normal'],
|
\ { 'fg': ['fg', 'Normal'],
|
||||||
|
|
Loading…
Reference in a new issue