dotfiles/.config/nvim/lua/coding.lua

25 lines
641 B
Lua

packer.use { -- toggle comments
'https://github.com/tomtom/tcomment_vim',
config = function()
map('n', '<Leader>c', ':TComment<cr>')
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', '<Leader>g', ':Neogit<cr>')
}
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'gitcommit', 'gitrebase' },
command = 'startinsert | 1',
})