2022-08-11 16:22:36 +02:00
|
|
|
require('my/plugins')
|
|
|
|
require('my/keymaps')
|
|
|
|
require('my/ui')
|
2022-08-10 21:22:40 +02:00
|
|
|
|
2022-08-08 19:58:38 +02:00
|
|
|
packer.use { -- toggle comments
|
|
|
|
'https://github.com/tomtom/tcomment_vim',
|
|
|
|
config = function()
|
2022-08-11 21:30:20 +02:00
|
|
|
vim.g.tcomment_opleader1 = '<Leader>c'
|
|
|
|
vim.g.tcomment_mapleader1 = ''
|
|
|
|
vim.g.tcomment_mapleader2 = ''
|
2022-08-08 19:58:38 +02:00
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
packer.use {
|
|
|
|
'https://github.com/TimUntersberger/neogit',
|
2022-08-11 15:21:02 +02:00
|
|
|
requires = {
|
|
|
|
'https://github.com/nvim-lua/plenary.nvim',
|
|
|
|
'https://github.com/folke/which-key.nvim'
|
|
|
|
},
|
2022-08-08 19:58:38 +02:00
|
|
|
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
|
|
|
|
2022-08-11 01:58:06 +02:00
|
|
|
-- start git commits in insert mode
|
2022-08-10 17:52:25 +02:00
|
|
|
vim.api.nvim_create_augroup('config_coding', { clear = true })
|
|
|
|
vim.api.nvim_create_autocmd(
|
|
|
|
{ 'FileType' },
|
|
|
|
{
|
|
|
|
group = 'config_coding',
|
|
|
|
pattern = { 'gitcommit', 'gitrebase' },
|
2022-08-11 01:58:06 +02:00
|
|
|
command = [[startinsert | 1]]
|
2022-08-10 17:52:25 +02:00
|
|
|
})
|
2022-08-09 00:19:29 +02:00
|
|
|
|
|
|
|
packer.use {
|
2022-08-10 21:22:40 +02:00
|
|
|
'https://github.com/gentoo/gentoo-syntax'
|
2022-08-09 00:19:29 +02:00
|
|
|
}
|
2022-08-10 01:30:02 +02:00
|
|
|
|
|
|
|
packer.use {
|
|
|
|
'https://github.com/jiangmiao/auto-pairs',
|
|
|
|
config = function()
|
|
|
|
vim.g.AutoPairsFlyMode = 0
|
|
|
|
end
|
|
|
|
}
|