Skip to content

Commit

Permalink
fix(gloabls): better picker detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed May 5, 2024
1 parent c8a7399 commit e627782
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/fzf-lua/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {})
Expand Down

0 comments on commit e627782

Please sign in to comment.