junegunn / fzf.vim

fzf :heart: vim
MIT License
9.52k stars 582 forks source link

Lua equivalent of the FZF git grep example. #1472

Closed farazshaikh closed 1 year ago

farazshaikh commented 1 year ago
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)

@junegunn in your README you have the above git grep example. I recently migrated vim scripts to LUA and was not able to find or conver the above snippet to LUA. Think you can help here ?

Thanks Faraz

junegunn commented 1 year ago

I don't use Neovim so I can't help you with it.