This commit is contained in:
Yannick Reiß 2024-12-18 10:15:08 +01:00
commit bcf67d08d7
2 changed files with 24 additions and 0 deletions

12
lua/macrotool/init.lua Normal file
View File

@ -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

12
plugin/macrotool.vim Normal file
View File

@ -0,0 +1,12 @@
" Title: macrotool
" Description: Manage macros, save them afterward.
" Maintainer: Yannick Reiss <yannick.reiss@nickr.eu>
" 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()