diff --git a/.config/nvim/lua/coding.lua b/.config/nvim/lua/coding.lua index e3f5f59..e3b07d8 100644 --- a/.config/nvim/lua/coding.lua +++ b/.config/nvim/lua/coding.lua @@ -20,5 +20,9 @@ packer.use { vim.api.nvim_create_autocmd('FileType', { pattern = { 'gitcommit', 'gitrebase' }, - command = 'startinsert | 1', + callback = function() + -- FIXME: why does the autocmd in settings.lua not set it? + vim.wo.colorcolumn = tostring(vim.o.textwidth) + vim.cmd([[startinsert | 1]]) + end })