neovim/after/ftplugin/gitcommit.lua
Oliver Ladner aa0f1fbd92 after/ftplugin instead of autocmd
Use after/ftplugin instead of autocmds to handle options depending on
filetype
2024-05-17 15:24:50 +02:00

8 lines
295 B
Lua

-- TIP: If you want custom color of colorcolumn local to window
-- do
-- local ns = vim.api.nvim_create_namespace('gitcommit')
-- vim.api.nvim_set_hl(ns, 'ColorColumn', { link = '#ff0000' })
-- vim.api.nvim_win_set_hl_ns(0, ns)
-- end
vim.bo.textwidth = 72
vim.wo.colorcolumn = "+0"