Skip to content

Commit

Permalink
fix: use return value of function as keys (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-programs authored Jul 5, 2024
1 parent 4061c8d commit 78cdf5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/better_escape.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78cdf5d

Please sign in to comment.