neovim: Add git editor integration with neovim-remote

This commit is contained in:
Peter Cai 2022-08-14 20:08:28 -04:00
parent 6e75fed013
commit 29a8c73a7c
1 changed files with 4 additions and 0 deletions

View File

@ -59,3 +59,7 @@ function _G.set_terminal_keymaps()
end
EOF
autocmd TermOpen term://* lua set_terminal_keymaps()
" Editor integration
let $GIT_EDITOR = 'nvr -cc split --remote-wait --servername ' . v:servername
autocmd FileType gitcommit,gitrebase,gitconfig set bufhidden=delete