14 lines
265 B
Lua
14 lines
265 B
Lua
local M = {}
|
|
local cmd = vim.cmd
|
|
|
|
function M.create_augroup(autocmds, name)
|
|
cmd('augroup ' .. name)
|
|
cmd('autocmd!')
|
|
for _, autocmd in ipairs(autocmds) do
|
|
cmd('autocmd ' .. table.concat(autocmd, ' '))
|
|
end
|
|
cmd('augroup END')
|
|
end
|
|
|
|
return M
|