From 1fc5ccb6afe1a7b8f721be740253dd8a157cbc3e Mon Sep 17 00:00:00 2001 From: Sergey Strigin Date: Sat, 29 Nov 2025 20:30:23 +0300 Subject: [PATCH] feat: set default width and height to 0.9 When default values are not set, they will be inherited from terminal's width and height, which can break lazygit's UI --- lua/snacks/lazygit.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/snacks/lazygit.lua b/lua/snacks/lazygit.lua index 210f73dff..14c63761f 100644 --- a/lua/snacks/lazygit.lua +++ b/lua/snacks/lazygit.lua @@ -60,7 +60,10 @@ local defaults = { }, } -Snacks.config.style("lazygit", {}) +Snacks.config.style("lazygit", { + width = 0.9, + height = 0.9, +}) -- re-create config file on startup local dirty = true