diff --git a/lua/fzf-lua/providers/grep.lua b/lua/fzf-lua/providers/grep.lua index 3439507a..06dc9159 100644 --- a/lua/fzf-lua/providers/grep.lua +++ b/lua/fzf-lua/providers/grep.lua @@ -149,6 +149,8 @@ local function normalize_live_grep_opts(opts) config.resume_set("search", val, { __resume_key = o.__resume_key }) config.resume_set("no_esc", true, { __resume_key = o.__resume_key }) utils.map_set(config, "__resume_data.last_query", val) + -- also store query for `fzf_resume` (#963) + utils.map_set(config, "__resume_data.opts.query", val) else config.resume_set(what, val, { __resume_key = o.__resume_key }) end diff --git a/lua/fzf-lua/providers/lsp.lua b/lua/fzf-lua/providers/lsp.lua index 2313a58d..3e5b17da 100644 --- a/lua/fzf-lua/providers/lsp.lua +++ b/lua/fzf-lua/providers/lsp.lua @@ -729,6 +729,8 @@ M.live_workspace_symbols = function(opts) what == "query" and "lsp_query" or what, val, { __resume_key = o.__resume_key }) utils.map_set(config, "__resume_data.last_query", val) + -- also store query for `fzf_resume` (#963) + utils.map_set(config, "__resume_data.opts.query", val) end opts.__resume_get = function(what, o) return config.resume_get(