From cfdc98a27dced24d8042f00d739bb4c20be3a278 Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Sun, 28 Sep 2025 07:13:40 +0100 Subject: [PATCH] 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 --- ftplugin/gitcommit.lua | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ftplugin/gitcommit.lua diff --git a/ftplugin/gitcommit.lua b/ftplugin/gitcommit.lua new file mode 100644 index 0000000..f519317 --- /dev/null +++ b/ftplugin/gitcommit.lua @@ -0,0 +1,5 @@ +vim.wo.spell = true +vim.bo.textwidth = 75 + +vim.fn.setpos(".", { 0, 1, 1, 0 }) +vim.cmd("startinsert")