Skip to content

fix: disable statuscolumn for neogit buffers - #2034

Merged
CKolkey merged 1 commit into
NeogitOrg:masterfrom
igorlfs:nostatuscolumn
Nov 17, 2026
Merged

CKolkey merged 1 commit into
NeogitOrg:masterfrom
igorlfs:nostatuscolumn

Conversation

@igorlfs

@igorlfs igorlfs commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Problem: user set values for 'statuscolumn' leak into neogit buffers.

Solution: reset 'statuscolumn'


Note that, in theory, 'statuscolumn' is set here:

if config.status_column then
buffer:set_window_option("statuscolumn", config.status_column)
buffer:set_window_option("signcolumn", "no")
end

But it doesn't seem to take effect, regardless of config.status_column, because of how window-local options work: the option is set before assigning the window, here:

local win
if config.open ~= false then
logger.debug("KIND " .. buffer.kind)
win = buffer:show()
logger.debug("KIND " .. buffer.kind)
logger.debug("[BUFFER:" .. buffer.handle .. "] Showing buffer in window " .. win .. " as " .. buffer.kind)
end

Hence it's likely that this never worked.

@CKolkey
CKolkey merged commit 797b176 into NeogitOrg:master Nov 17, 2026
3 of 5 checks passed
@igorlfs
igorlfs deleted the nostatuscolumn branch November 17, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants