From ac63c91ee88b56000530b5fe47b5040e19be3c01 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Thu, 19 Dec 2024 08:34:59 +0100 Subject: [PATCH] Add function as module --- lua/macrotool/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/macrotool/init.lua b/lua/macrotool/init.lua index bf29e6d..6e4dcb8 100644 --- a/lua/macrotool/init.lua +++ b/lua/macrotool/init.lua @@ -8,7 +8,7 @@ if vim == nil then vim = {} end -function Macrochain() +function M.Macrochain() -- vim.print(table.concat(keystrokes, "")) vim.print("Hello world") end @@ -28,3 +28,5 @@ local record_keystroke = function(mapped_key) -- end end vim.on_key(record_keystroke) + +return M