Remove most of the function for testing
All checks were successful
Try loading the plugin into nvim / build (ubuntu-20.04) (push) Successful in 16s

This commit is contained in:
2024-12-19 08:27:58 +01:00
parent f017666011
commit 019b9f3a45

View File

@@ -16,14 +16,14 @@ end
-- @param mapped_key
-- @param raw_key
-- @short Add mapped_key to keystrokes
local function record_keystroke(mapped_key, raw_key)
local record_keystroke = function(mapped_key)
table.insert(keystrokes, mapped_key)
if #keystrokes > 60 then
local temp_keystrokes = {}
for i = 31, #keystrokes do
table.insert(temp_keystrokes, keystrokes[i])
end
keystrokes = temp_keystrokes
end
-- if #keystrokes > 60 then
-- local temp_keystrokes = {}
-- for i = 31, #keystrokes do
-- table.insert(temp_keystrokes, keystrokes[i])
-- end
-- keystrokes = temp_keystrokes
-- end
end
vim.on_key(record_keystroke)