Skip to content

Commit 79fbe36

Browse files
phanenibhagwan
authored andcommitted
fix: multiprocess fn_transform_cmd
1 parent f3465d6 commit 79fbe36

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

lua/fzf-lua/make_entry.lua

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ local function load_config()
3535
return res
3636
end
3737

38-
local opts2 = setmetatable({}, {
39-
__index = function(_, k)
40-
return utils.map_get(config, "__resume_data.opts." .. k)
41-
end
42-
})
43-
4438
local function load_config_section(s, datatype, optional)
4539
if not _G._fzf_lua_is_headless then
4640
local val = utils.map_get(config, s)
@@ -82,6 +76,16 @@ local function load_config_section(s, datatype, optional)
8276
end
8377
end
8478

79+
80+
local opts2 = setmetatable({}, {
81+
__index = function(_, k)
82+
if k == "fn_transform_cmd" then
83+
return load_config_section("__resume_data.opts.fn_transform_cmd", "function", true)
84+
end
85+
return utils.map_get(config, "__resume_data.opts." .. k)
86+
end
87+
})
88+
8589
if _G._fzf_lua_is_headless then
8690
local _config = load_config() or {} ---@module 'fzf-lua.config'
8791
_config.globals = { git = {}, files = {}, grep = {} }

0 commit comments

Comments
 (0)