commit bcf67d08d73098e4e220665b20b60299329518c6 Author: yannickreiss Date: Wed Dec 18 10:15:08 2024 +0100 init diff --git a/lua/macrotool/init.lua b/lua/macrotool/init.lua new file mode 100644 index 0000000..8e67950 --- /dev/null +++ b/lua/macrotool/init.lua @@ -0,0 +1,12 @@ +local M = {} +local api = vim.api +local buf, win + +-- Only for debugging +if vim == nil then + vim = {} +end + +function Macrochain() + vim.print("Hello World!") +end diff --git a/plugin/macrotool.vim b/plugin/macrotool.vim new file mode 100644 index 0000000..bfaf697 --- /dev/null +++ b/plugin/macrotool.vim @@ -0,0 +1,12 @@ +" Title: macrotool +" Description: Manage macros, save them afterward. +" Maintainer: Yannick Reiss + +" Avoid loading the plugin multiple times +if exists("g:loaded_macrotool") + finish +endif +let g:loaded_macrotool = 1 + +" Exposes the plugin's functions for use as commands in Neovim. +command! -nargs=0 Macrochain lua require("macrotool").Macrochain()