added raw_cmd option to files,grep

main
bhagwan 3 years ago
parent ecdc79da2e
commit 1c25350397

@ -10,6 +10,9 @@ local config = require "fzf-lua.config"
local M = {}
local get_files_cmd = function(opts)
if opts.raw_cmd and #opts.raw_cmd>0 then
return opts.raw_cmd
end
if opts.cmd and #opts.cmd>0 then
return opts.cmd
end

@ -11,7 +11,9 @@ local config = require "fzf-lua.config"
local M = {}
local get_grep_cmd = function(opts, search_query, no_esc)
if opts.raw_cmd and #opts.raw_cmd>0 then
return opts.raw_cmd
end
local command = nil
if opts.cmd and #opts.cmd > 0 then
command = opts.cmd

Loading…
Cancel
Save