1
Fork 0
satellite/dotfiles/neovim/lua/my/helpers/augroup.lua

15 lines
267 B
Lua
Raw Normal View History

local M = {}
function M.augroup(name, inside)
vim.cmd('augroup ' .. name)
vim.cmd('autocmd!')
inside()
vim.cmd('augroup END')
end
function M.autocmd(event, glob, action)
vim.cmd('autocmd ' .. event .. ' ' .. glob .. ' ' .. action)
end
return M