Skip to content

Commit 5a3354d

Browse files
committed
feat(live_grep): rg_glob with custom command (#1927)
1 parent 1dcef24 commit 5a3354d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/fzf-lua/providers/grep.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ local get_grep_cmd = function(opts, search_query, no_esc)
4646
-- be reworked into a table of arguments
4747
opts._cmd = command
4848

49-
if opts.rg_glob and not command:match("^rg") then
49+
if opts.rg_glob and not opts.rg_glob_fn not command:match("^rg") then
5050
if not tonumber(opts.rg_glob) and not opts.silent then
5151
-- Do not display the error message if using the defaults (rg_glob=1)
5252
utils.warn("'--glob|iglob' flags require 'rg', ignoring 'rg_glob' option.")

0 commit comments

Comments
 (0)