packer.use { -- toggle comments 'https://github.com/tomtom/tcomment_vim', config = function() map('n', 'c', ':TComment') end } packer.use { 'https://github.com/TimUntersberger/neogit', requires = 'https://github.com/nvim-lua/plenary.nvim', config = function() require('which-key').setup { -- commit_popup = { -- kind = 'split' -- } } end, map('n', 'g', ':Neogit') } vim.api.nvim_create_autocmd('FileType', { pattern = { 'gitcommit', 'gitrebase' }, 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 }) packer.use { 'https://github.com/gentoo/gentoo-syntax', ft = 'ebuild' } packer.use { 'https://github.com/jiangmiao/auto-pairs', config = function() vim.g.AutoPairsFlyMode = 0 end }