nvim: add colorcolumn-workaround for git commits
This commit is contained in:
parent
ec373c7934
commit
58ee0ade7f
|
@ -20,5 +20,9 @@ packer.use {
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
pattern = { 'gitcommit', 'gitrebase' },
|
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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user