Update autocmds and keybinds

This commit is contained in:
Michel 2024-12-06 23:14:05 +01:00
parent 1ad0a620c9
commit 547daf4000
3 changed files with 15 additions and 12 deletions

View file

@ -12,7 +12,7 @@ vim.api.nvim_create_autocmd("BufWritePost", {
local commitMessage = get_file_name(args.file) .. "-" .. os.date("%m_%B_%Y")
os.execute("git add " .. args.file)
os.execute('git add "' .. args.file .. '"')
local commitCommand = 'git commit -m "' .. commitMessage .. '" &> /dev/null'
local commitResult = os.execute(commitCommand)