.dotfiles/configs/lua/utils.lua

14 lines
265 B
Lua
Raw Normal View History

2021-08-10 21:50:49 +02:00
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