diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-12-29 13:59:28 +0530 |
---|---|---|
committer | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-12-29 13:59:28 +0530 |
commit | 15b138b013104d3df315c9e84bb6fc1f285347d6 (patch) | |
tree | 8bfad693456287fd9c8f06be0d62d23807221f33 /lua | |
parent | 0b5f3fc96eddcd603de17644da8a962e0a93c04a (diff) |
restore utils.lua location, needed by filetypes. Moving filetypes to plugin folder
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Diffstat (limited to 'lua')
-rw-r--r-- | lua/utils.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/utils.lua b/lua/utils.lua new file mode 100644 index 0000000..7c8a7bf --- /dev/null +++ b/lua/utils.lua @@ -0,0 +1,17 @@ +-- +-- Auto group utilites +-- + +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 |