Skip to content

Commit

Permalink
fix(globals): inherit defaults fzf_colors (closes #1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed May 5, 2024
1 parent f073e01 commit c8a7399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/fzf-lua/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +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.prompt) or (setup_value and setup_value.prompt) then
-- (2) the existence of the `prompt` key implies we're dealing with a provider
if (fzflua_default and fzflua_default.actions) or (setup_value and 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 {})
end
Expand Down

0 comments on commit c8a7399

Please sign in to comment.