File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1218,11 +1218,15 @@ M.convert_reload_actions = function(reload_cmd, opts)
1218
1218
end
1219
1219
end
1220
1220
opts .keymap .fzf .load = (function ()
1221
+ -- NOTE: this fixes existence of both load as function and rebind, e.g. git_status with:
1222
+ -- setup({ keymap = { fzf = { true, load = function() _G._fzf_load_called = true end } } }
1223
+ if type (opts .keymap .fzf .load ) == " function" then
1224
+ opts .keymap .fzf .load = " execute-silent:" ..
1225
+ shell .raw_action (opts .keymap .fzf .load , nil , opts .debug )
1226
+ end
1221
1227
if rebind and type (opts .keymap .fzf .load ) == " string" then
1222
1228
return string.format (" %s+%s" , rebind , opts .keymap .fzf .load )
1223
1229
else
1224
- -- TODO: fix existence of both load as function and rebind, e.g. git_status with:
1225
- -- setup({ keymap = { fzf = { true, load = function() _G._fzf_load_called = true end } } }
1226
1230
return rebind or opts .keymap .fzf .load
1227
1231
end
1228
1232
end )()
You can’t perform that action at this time.
0 commit comments