15 lines
267 B
Lua
15 lines
267 B
Lua
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
|