nVim/ftplugin/gitcommit.lua
Robert Morrison cfdc98a27d 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
2025-09-28 07:13:40 +01:00

6 lines
101 B
Lua

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