Skip to content

Commit 91bc39a

Browse files
committed
fix(config): actions as function (closes #2164)
1 parent 9be1552 commit 91bc39a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/fzf-lua/config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ M.globals = setmetatable({}, {
8282
-- exclude case-sensitive alt-binds from being lowercased
8383
local exclude_case_sensitive_alt = "^alt%-%a$"
8484
for _, k in ipairs(keys) do
85+
if type(setup_value) == "function" then setup_value = setup_value() end
8586
ret[k] = setup_value and type(setup_value[k]) == "table"
8687
and vim.tbl_deep_extend("keep",
8788
utils.map_tolower(utils.tbl_deep_clone(setup_value[k]), exclude_case_sensitive_alt),

0 commit comments

Comments
 (0)