mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:00:06 +08:00
perf(recordkey): use keytrans()
This commit is contained in:
parent
5f06cb9eb8
commit
f07c2e3e31
@ -67,7 +67,7 @@ local function display()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function on_key(key)
|
local function on_key(key)
|
||||||
table.insert(keys, key)
|
table.insert(keys, vim.fn.keytrans(key))
|
||||||
vim.fn.timer_start(timeout, function()
|
vim.fn.timer_start(timeout, function()
|
||||||
if #keys > 0 then
|
if #keys > 0 then
|
||||||
table.remove(keys, 1)
|
table.remove(keys, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user