From e627782478a3f8bd6e766b39c40631f60a1b66ba Mon Sep 17 00:00:00 2001 From: bhagwan Date: Sun, 5 May 2024 10:07:32 -0700 Subject: [PATCH] fix(gloabls): better picker detection --- lua/fzf-lua/config.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/fzf-lua/config.lua b/lua/fzf-lua/config.lua index 81b3c98b..17359e50 100644 --- a/lua/fzf-lua/config.lua +++ b/lua/fzf-lua/config.lua @@ -106,7 +106,8 @@ M.globals = setmetatable({}, { end -- (1) use fzf-lua's true defaults (pre-setup) as our options base local ret = utils.tbl_deep_clone(fzflua_default) or {} - if (fzflua_default and fzflua_default.actions) or (setup_value and setup_value.actions) then + if (fzflua_default and (fzflua_default.actions or fzflua_default._actions)) + or (setup_value and (setup_value.actions or setup_value._actions)) then -- (2) the existence of the `actions` key implies we're dealing with a picker -- override global provider defaults supplied by the user's setup `defaults` table ret = vim.tbl_deep_extend("force", ret, M.setup_opts.defaults or {})