2022-08-08 19:58:38 +02:00
|
|
|
packer.use { -- toggle comments
|
|
|
|
'https://github.com/tomtom/tcomment_vim',
|
|
|
|
config = function()
|
2022-08-08 20:14:58 +02:00
|
|
|
map('n', '<Leader>c', ':TComment<cr>')
|
2022-08-08 19:58:38 +02:00
|
|
|
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'
|
|
|
|
-- }
|
|
|
|
}
|
2022-08-08 20:14:58 +02:00
|
|
|
end,
|
|
|
|
map('n', '<Leader>g', ':Neogit<cr>')
|
2022-08-08 19:58:38 +02:00
|
|
|
}
|
2022-08-08 22:13:48 +02:00
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
|
|
pattern = { 'gitcommit', 'gitrebase' },
|
2022-08-08 23:29:17 +02:00
|
|
|
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
|
2022-08-08 22:13:48 +02:00
|
|
|
})
|
2022-08-09 00:19:29 +02:00
|
|
|
|
|
|
|
packer.use {
|
|
|
|
'https://github.com/gentoo/gentoo-syntax',
|
|
|
|
requires = { 'https://github.com/vim-syntastic/syntastic' },
|
|
|
|
config = function()
|
|
|
|
-- vim.g.syntastic_ebuild_checkers = { 'pkgcheck' }
|
|
|
|
vim.g.syntastic_sh_checkers = { 'sh', 'checkbashisms' }
|
|
|
|
end
|
|
|
|
}
|