add autocmd for gitcommit filetype
This commit is contained in:
@@ -10,6 +10,15 @@ autocmd('FileType', {
|
||||
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
|
||||
-- │ from https://github.com/raymon-roos/neovim-config/blob/main/lua/core/autocmds.lua
|
||||
|
||||
Reference in New Issue
Block a user