We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7619e1e commit 9cbc693Copy full SHA for 9cbc693
lua/better_escape.lua
@@ -72,7 +72,10 @@ local function record_key(key)
72
end)
73
end
74
75
-vim.on_key(function()
+vim.on_key(function(mapping, typed)
76
+ if typed == "" then
77
+ return
78
+ end
79
if has_recorded == false then
80
-- If the user presses a key that doesn't get recorded, remove the previously recorded key.
81
recorded_key = nil
0 commit comments