From 06e9f403e9650ca236e9c771c3b66c080ead0d23 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Aug 2022 22:13:48 +0200 Subject: [PATCH] nvim: start git commit messages in insert mode --- .config/nvim/lua/coding.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/lua/coding.lua b/.config/nvim/lua/coding.lua index d3557ac..e3f5f59 100644 --- a/.config/nvim/lua/coding.lua +++ b/.config/nvim/lua/coding.lua @@ -17,3 +17,8 @@ packer.use { end, map('n', 'g', ':Neogit') } + +vim.api.nvim_create_autocmd('FileType', { + pattern = { 'gitcommit', 'gitrebase' }, + command = 'startinsert | 1', +})