From b9eae3badab982e71abab96d3ee1d258f0c07961 Mon Sep 17 00:00:00 2001 From: Teddy Waweru <57697272+teddywaweru@users.noreply.github.com> Date: Mon, 17 Feb 2025 18:36:36 +0000 Subject: [PATCH] fix: signcolumn overlaps left borders (#132) signcolumns hide the left borders(for configs that have the signcolumn opt active. Requires to be set twice(this may be a personal config scenario). The first sets for the floating window created, the second for lazygit's UI. --- lua/lazygit/window.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazygit/window.lua b/lua/lazygit/window.lua index 86c02c1..664aa47 100644 --- a/lua/lazygit/window.lua +++ b/lua/lazygit/window.lua @@ -64,6 +64,8 @@ local function open_floating_window() else LAZYGIT_LOADED = true end + + vim.cmd('setlocal signcolumn=no') -- create file window, enter the window, and use the options defined in opts local win = api.nvim_open_win(LAZYGIT_BUFFER, true, opts) @@ -71,6 +73,7 @@ local function open_floating_window() vim.cmd('setlocal bufhidden=hide') vim.cmd('setlocal nocursorcolumn') + vim.cmd('setlocal signcolumn=no') vim.api.nvim_set_hl(0, "LazyGitFloat", { link = "Normal", default = true }) vim.cmd('setlocal winhl=NormalFloat:LazyGitFloat') vim.cmd('set winblend=' .. vim.g.lazygit_floating_window_winblend)