nvim: start git commit messages in insert mode

This commit is contained in:
tastytea 2022-08-08 22:13:48 +02:00
parent b46408a64a
commit 06e9f403e9
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -17,3 +17,8 @@ packer.use {
end, end,
map('n', '<Leader>g', ':Neogit<cr>') map('n', '<Leader>g', ':Neogit<cr>')
} }
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'gitcommit', 'gitrebase' },
command = 'startinsert | 1',
})