add autocmd for gitcommit filetype

This commit is contained in:
2024-11-29 13:28:10 -05:00
parent 8f5522b0d7
commit eee5c1c197
+9
View File
@@ -10,6 +10,15 @@ autocmd('FileType', {
end, end,
}) })
-- ─────────────────────[ set options for gitcommit ]─────────────────────
autocmd('FileType', {
pattern = 'gitcommit',
callback = function()
vim.opt_local.textwidth = 78
vim.opt_local.spell = true
end,
})
-- ┌ -- ┌
-- │ Highlight on yank -- │ Highlight on yank
-- │ from https://github.com/raymon-roos/neovim-config/blob/main/lua/core/autocmds.lua -- │ from https://github.com/raymon-roos/neovim-config/blob/main/lua/core/autocmds.lua