Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signcolumn is chaned to auto by focus #142

Open
s1n7ax opened this issue Oct 16, 2023 · 1 comment
Open

Signcolumn is chaned to auto by focus #142

s1n7ax opened this issue Oct 16, 2023 · 1 comment

Comments

@s1n7ax
Copy link

s1n7ax commented Oct 16, 2023

I have set signcolumn="yes" in my configuration (not in the plugin setup). However when I setup focus with following setup options, signcolumn changes it to auto.

return {
	'nvim-focus/focus.nvim',
	event = 'VeryLazy',
	enabled = true,
	opts = {
		commands = false,
	},
}
@YodaEmbedding
Copy link

YodaEmbedding commented Jan 10, 2025

I figured out it was this plugin by running rg 'signcolumn.*=.*auto' on my plugins directory.

Looks like this occurs because signcolumn is meant to be hidden when windows are unfocused. So it chooses auto as a default.

However, it would be better if the signcolumn value of a given window is saved every time that the window becomes unfocused, and then restored upon focus. Same with relativenumber and other settings. This significantly reduces the risk of conflict with user settings.

Temporary workaround:

opts = {
  ui = {
    signcolumn = false,
  },
}

YodaEmbedding added a commit to YodaEmbedding/dotfiles that referenced this issue Jan 10, 2025
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

No branches or pull requests

2 participants