update
This commit is contained in:
parent
d2fc8672d0
commit
e2d5df96f1
1 changed files with 2 additions and 2 deletions
4
init.lua
4
init.lua
|
|
@ -331,14 +331,14 @@ vim.api.nvim_create_autocmd('BufEnter', {
|
|||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('BufEnter', {
|
||||
pattern = { "/home/jaroslaw/notes/**" },
|
||||
pattern = { "*/notes/**" },
|
||||
callback = function()
|
||||
vim.loop.spawn("git", { args = { "pull" } })
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('BufWritePost', {
|
||||
pattern = { "/home/jaroslaw/notes/**" },
|
||||
pattern = { "*/notes/**" },
|
||||
callback = function()
|
||||
local filename = vim.fn.expand('%')
|
||||
local command = 'git add ' .. filename .. '; git commit -m "Auto-commit: saved ' .. filename .. '"'
|
||||
|
|
|
|||
Loading…
Reference in a new issue