nvim: pimp preview; vim: use rg if exists

This commit is contained in:
Marco Thomas
2023-03-07 10:51:47 +01:00
parent bc43486dbf
commit b3c3a4a5d8
3 changed files with 6 additions and 3 deletions

View File

@@ -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>