Refactor git commit filetype overrides

This commit is contained in:
Oliver Davies 2024-07-09 22:00:00 +01:00
parent 856c994e21
commit 3c2810f1eb
2 changed files with 8 additions and 11 deletions

View file

@ -0,0 +1,8 @@
vim.opt_local.colorcolumn = "50,72"
vim.opt_local.spell = true
vim.opt_local.textwidth = 72
-- autocmd FileType gitcommit highlight ColorColumn ctermbg=8
-- filetype indent on
-- filetype on
-- filetype plugin on

View file

@ -50,14 +50,3 @@ vim.opt.completeopt = { "menu", "menuone", "noinsert", "noselect" }
vim.opt.listchars:append {
trail = "·",
}
vim.cmd [[
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
autocmd FileType gitcommit setlocal colorcolumn=50,72
autocmd FileType gitcommit setlocal spell
autocmd FileType gitcommit setlocal textwidth=72
filetype indent on
filetype on
filetype plugin on
]]