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:
parent
4cb90679a2
commit
e42a6ceacf
4 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue