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:
parent
0a15d8ff18
commit
cfdc98a27d
5
ftplugin/gitcommit.lua
Normal file
5
ftplugin/gitcommit.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
vim.wo.spell = true
|
||||
vim.bo.textwidth = 75
|
||||
|
||||
vim.fn.setpos(".", { 0, 1, 1, 0 })
|
||||
vim.cmd("startinsert")
|
||||
Loading…
Reference in New Issue
Block a user