Refactor git commit filetype overrides
This commit is contained in:
parent
856c994e21
commit
3c2810f1eb
8
after/ftplugin/gitcommit.lua
Normal file
8
after/ftplugin/gitcommit.lua
Normal 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
|
|
@ -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
|
||||
]]
|
||||
|
|
Reference in a new issue