From bcf67d08d73098e4e220665b20b60299329518c6 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Wed, 18 Dec 2024 10:15:08 +0100 Subject: [PATCH] init --- lua/macrotool/init.lua | 12 ++++++++++++ plugin/macrotool.vim | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 lua/macrotool/init.lua create mode 100644 plugin/macrotool.vim 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()