nvim: pimp preview; vim: use rg if exists
This commit is contained in:
@@ -115,7 +115,8 @@ command! -bang -nargs=* GGrep
|
||||
\ call fzf#vim#grep(
|
||||
\ 'git grep --line-number -- '.shellescape(<q-args>), 0,
|
||||
\ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), <bang>0)
|
||||
map <C-s> :GGrep<CR>
|
||||
"map <C-s> :GGrep<CR>
|
||||
map <C-s> :Rg<CR>
|
||||
|
||||
" git
|
||||
map <leader>gs :Git status<CR>
|
||||
|
||||
Reference in New Issue
Block a user