NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.71k stars 221 forks source link

[Nightly] Add option to disable the commit diff view window #1261

Closed b0o closed 3 months ago

b0o commented 3 months ago

It seems there's no way to disable the commit diff view in the configuration. I tested the following patch and it does what I want, but since show_diff is hard-coded, it's not configurable.

diff --git a/lua/neogit/popups/commit/actions.lua b/lua/neogit/popups/commit/actions.lua
index 16622fe5..12663832 100644
--- a/lua/neogit/popups/commit/actions.lua
+++ b/lua/neogit/popups/commit/actions.lua
@@ -31,7 +31,7 @@ local function do_commit(popup, cmd)
       success = "Committed",
     },
     interactive = true,
-    show_diff = true,
+    show_diff = false,
   })
 end
CKolkey commented 3 months ago

Fair - here you are: 9f29110 (#978) :)

b0o commented 3 months ago

Thank you!