Update GGrep example to work at project level. (#590)

This commit is contained in:
Shea Parkes
2018-03-08 21:48:46 -05:00
committed by Junegunn Choi
parent 17d24ae31d
commit a362bc58f1

View File

@@ -176,7 +176,9 @@ You can use autoload functions to define your own commands.
" Command for git grep
" - fzf#vim#grep(command, with_column, [options], [fullscreen])
command! -bang -nargs=* GGrep
\ call fzf#vim#grep('git grep --line-number '.shellescape(<q-args>), 0, <bang>0)
\ call fzf#vim#grep(
\ 'git grep --line-number '.shellescape(<q-args>), 0,
\ { 'dir': systemlist('git rev-parse --show-toplevel')[0] }, <bang>0)
" Override Colors command. You can safely do this in your .vimrc as fzf.vim
" will not override existing commands.