Removed the need for my own augroup helper
This commit is contained in:
parent
7c77d3a8dd
commit
c610d1ce1a
8 changed files with 12 additions and 113 deletions
dotfiles/neovim/lua/my/helpers
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue