Starting match up function
Try loading the plugin into nvim / build (ubuntu-20.04) (push) Successful in 14s
Details
Try loading the plugin into nvim / build (ubuntu-20.04) (push) Successful in 14s
Details
This commit is contained in:
parent
c051560062
commit
9ca1d7827f
|
@ -8,6 +8,14 @@ if vim == nil then
|
||||||
vim = {}
|
vim = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- @name match_sequence
|
||||||
|
-- @short Match a sequence.
|
||||||
|
local function match_sequence()
|
||||||
|
for i = 5, #keystrokes do
|
||||||
|
vim.print("Checking match sequence!")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function M.Macrochain()
|
function M.Macrochain()
|
||||||
vim.print(table.concat(keystrokes, ""))
|
vim.print(table.concat(keystrokes, ""))
|
||||||
end
|
end
|
||||||
|
@ -18,6 +26,7 @@ end
|
||||||
-- @short Add mapped_key to keystrokes
|
-- @short Add mapped_key to keystrokes
|
||||||
local record_keystroke = function(mapped_key, raw_key)
|
local record_keystroke = function(mapped_key, raw_key)
|
||||||
table.insert(keystrokes, raw_key)
|
table.insert(keystrokes, raw_key)
|
||||||
|
match_sequence()
|
||||||
if #keystrokes > 60 then
|
if #keystrokes > 60 then
|
||||||
local temp_keystrokes = {}
|
local temp_keystrokes = {}
|
||||||
for i = 31, #keystrokes do
|
for i = 31, #keystrokes do
|
||||||
|
|
Loading…
Reference in New Issue