feat: add gitcommit auto configuration

Set `spell`, and `textwidth` when entering a git commit.
Also automatically move to position 1:1 and enter insert mode
This commit is contained in:
Robert Morrison 2025-09-28 07:13:40 +01:00
parent 0a15d8ff18
commit cfdc98a27d

5
ftplugin/gitcommit.lua Normal file
View File

@ -0,0 +1,5 @@
vim.wo.spell = true
vim.bo.textwidth = 75
vim.fn.setpos(".", { 0, 1, 1, 0 })
vim.cmd("startinsert")