Git ignore .pre-commit-config.yaml

Add fish abbreviation for git commit --amend
Don't autoformat when writing commit message in neovim
This commit is contained in:
Pim Kunis 2024-10-28 13:09:52 +01:00
parent 4cb90679a2
commit e42a6ceacf
4 changed files with 3 additions and 2 deletions

View file

@ -57,7 +57,7 @@ end
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "*",
callback = function()
if has_treefmt() then
if vim.fn.expand("%:p") ~= vim.fn.getcwd() .. "/.git/COMMIT_EDITMSG" and has_treefmt() then
vim.cmd("silent !treefmt > /dev/null 2>&1")
end
end,