Remove most of the function for testing
Try loading the plugin into nvim / build (ubuntu-20.04) (push) Successful in 16s
Details
Try loading the plugin into nvim / build (ubuntu-20.04) (push) Successful in 16s
Details
This commit is contained in:
parent
f017666011
commit
019b9f3a45
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue