1
Fork 0

Removed the need for my own augroup helper

This commit is contained in:
Matei Adriel 2022-08-24 14:54:19 +03:00
parent 7c77d3a8dd
commit c610d1ce1a
8 changed files with 12 additions and 113 deletions
dotfiles/neovim/lua/my/helpers

View file

@ -1,14 +0,0 @@
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

View file

@ -1,9 +1,9 @@
local M = {}
function M.update()
require("my.helpers").saveCursor(function()
vim.cmd(":%!update-nix-fetchgit")
end)
require("my.helpers").saveCursor(function()
vim.cmd(":%!update-nix-fetchgit")
end)
end
return M