Make neovim the default git editor

This commit is contained in:
Dheepak Krishnamurthy
2020-04-08 14:03:11 -06:00
parent fb3f98f805
commit 3e13ea3bb2

View File

@@ -26,7 +26,7 @@ local function project_root_dir()
end
local function exec_lazygit_command(root_dir)
local cmd = "lazygit " .. "-p " .. root_dir
local cmd = "GIT_EDITOR=nvim lazygit " .. "-p " .. root_dir
-- ensure that the buffer is closed on exit
execute([[
call termopen('%s', {'on_exit': {job_id, code, event-> luaeval("require('lazygit').on_exit(" . job_id . "," . code . "," . event . ")")}})