How to set a custom grep (rg) command? #1747
-
Sorry for the basic question, but I'm coming from fzf.vim, and in there I have custom def of the Rg vim command, in order to be able to give arguments to Rg, like ":Rg -t js searchterm" to search only in .js files. It looks like this in .vimrc: How would I set this in fzf.lua in the cleanest possible way? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Many different ways:
|
Beta Was this translation helpful? Give feedback.
-
Thanks so much for the quick reply! |
Beta Was this translation helpful? Give feedback.
Many different ways:
live_ grep({ cmd = "rg …" })
(or use rg_opts)regex -- *.ts