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
All checks were successful
Try loading the plugin into nvim / build (ubuntu-20.04) (push) Successful in 16s
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user