Skip to content

Commit

Permalink
fix: if signs are not disabled, avoid overrided by user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ofseed committed Aug 5, 2023
1 parent 77cb59f commit 564ae34
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/neogit/lib/buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 564ae34

Please sign in to comment.