Moves nvim-notes away to nvim

This commit is contained in:
Michel 2025-01-12 15:12:00 +01:00
parent 16fcac8f72
commit ea64ee6760
33 changed files with 73 additions and 1068 deletions

View file

@ -1,3 +1,24 @@
local git = require("functions.git")
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = { "*.md" },
callback = function(args)
git.commitFile(args.file)
end,
})
vim.api.nvim_create_autocmd("VimLeavePre", {
callback = function()
git.push()
end,
})
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
git.pull()
end,
})