diff --git a/lua/better_escape.lua b/lua/better_escape.lua index 010ac2c..010d3a2 100644 --- a/lua/better_escape.lua +++ b/lua/better_escape.lua @@ -121,7 +121,7 @@ local function map_keys() if type(mapping) == "string" then vim.api.nvim_input(mapping) elseif type(mapping) == "function" then - mapping() + vim.api.nvim_input(mapping() or "") end end, map_opts) end