Skip to content

Commit

Permalink
added cmd_fn option for 'grep' providers (to enable '--iglob' support)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Oct 6, 2021
1 parent 5688508 commit 3b24fe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/fzf-lua/providers/grep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ local last_search = {}
local M = {}

local get_grep_cmd = function(opts, search_query, no_esc)
if opts.cmd_fn and type(opts.cmd_fn) == 'function' then
return opts.cmd_fn(opts, search_query, no_esc)
end
if opts.raw_cmd and #opts.raw_cmd>0 then
return opts.raw_cmd
end
Expand Down

0 comments on commit 3b24fe4

Please sign in to comment.