From 1e08e3f5ac1152339690140e61a4a32b3bdc7de5 Mon Sep 17 00:00:00 2001 From: Ethan Warrick Date: Thu, 14 Dec 2023 14:21:20 -0600 Subject: [PATCH] feat: Use winblend config for plenary window There is an existing user config for setting the winblend value of the lazygit floating window. This controls the background transparency of the window. However, this config option is not respected if the lazygit window is created using plenary (another user config). This change forces the plenary window to use the existing config for transparency. --- lua/lazygit/window.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazygit/window.lua b/lua/lazygit/window.lua index dbbeda7..86c02c1 100644 --- a/lua/lazygit/window.lua +++ b/lua/lazygit/window.lua @@ -12,7 +12,7 @@ local function open_floating_window() local status, plenary = pcall(require, 'plenary.window.float') if status and vim.g.lazygit_floating_window_use_plenary and vim.g.lazygit_floating_window_use_plenary ~= 0 then - local ret = plenary.percentage_range_window(floating_window_scaling_factor, floating_window_scaling_factor) + local ret = plenary.percentage_range_window(floating_window_scaling_factor, floating_window_scaling_factor, {winblend=vim.g.lazygit_floating_window_winblend}) return ret.win_id, ret.bufnr end