owenrusk.dev

dotfiles

shell, editor, ssh.

git clone https://owenrusk.dev/dotfiles.git

commit a7367668da06dca57008f85a9a009e71c89e756b
parent b3242f972ad70c71ef429a19568f560a5d591bf4
author Owen Rusk <owen@papermothgames.com>
date   2026-08-25 18:35:46 -0500
nvim: spell and 72 columns in commit messages
nvim/lua/owen/autocmds.lua+8-0
diff --git a/nvim/lua/owen/autocmds.lua b/nvim/lua/owen/autocmds.lua
index a215a71..9e7ccfa 100644
--- a/nvim/lua/owen/autocmds.lua
+++ b/nvim/lua/owen/autocmds.lua
@@ -37,6 +37,14 @@ au("BufWritePre", {
   end,
 })
 
+au("FileType", {
+  pattern = "gitcommit",
+  callback = function()
+    vim.opt_local.spell = true
+    vim.opt_local.textwidth = 72
+  end,
+})
+
 au("TextYankPost", {
   callback = function()
     vim.hl.on_yank({ timeout = 150 })