all repos — dotfiles @ 61fed1b49b25bdaee135fa1488ea5435edd10b72

my *nix dotfiles

config/nvim/lua/utils.lua (view raw)

 1local M = {}
 2local cmd = vim.cmd
 3
 4function M.create_augroup(autocmds, name)
 5    cmd('augroup ' .. name)
 6    cmd('autocmd!')
 7    for _, autocmd in ipairs(autocmds) do
 8        cmd('autocmd ' .. table.concat(autocmd, ' '))
 9    end
10    cmd('augroup END')
11end
12
13return M