From 3e13ea3bb2686a3ca1bd5e2fa40774ea45a94db4 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Wed, 8 Apr 2020 14:03:11 -0600 Subject: [PATCH] Make neovim the default git editor --- lua/lazygit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazygit.lua b/lua/lazygit.lua index 5297e80..c78bfde 100644 --- a/lua/lazygit.lua +++ b/lua/lazygit.lua @@ -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 . ")")}})