From 564ae3487a7936edc5b37f09ff2fb793d71a48ed Mon Sep 17 00:00:00 2001 From: Yi Ming Date: Sat, 5 Aug 2023 14:08:32 +0800 Subject: [PATCH] fix: if signs are not disabled, avoid overrided by user settings --- lua/neogit/lib/buffer.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/neogit/lib/buffer.lua b/lua/neogit/lib/buffer.lua index 5ce7779aa..f029f48bf 100644 --- a/lua/neogit/lib/buffer.lua +++ b/lua/neogit/lib/buffer.lua @@ -476,13 +476,20 @@ function Buffer.create(config) buffer:call(config.after) end - -- This sets fold styling for Neogit windows without overriding user styling buffer:call(function() + -- This sets fold styling for Neogit windows without overriding user styling local hl = vim.wo.winhl if hl ~= "" then hl = hl .. "," end vim.wo.winhl = hl .. "Folded:NeogitFold" + + -- If signs are not disabled, avoid overrided by user settings + buffer:call(function() + if not config.disable_signs then + vim.wo.signcolumn = "yes" + end + end) end) if config.context_highlight then