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

This commit is contained in:
Yannick Reiß 2024-12-19 08:27:58 +01:00
parent f017666011
commit 019b9f3a45
1 changed files with 8 additions and 8 deletions

View File

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