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

fix: set option to nil if not cached and set by lualine #1157

Closed
wants to merge 2 commits into from
Closed

fix: set option to nil if not cached and set by lualine #1157

wants to merge 2 commits into from

Conversation

Sam-programs
Copy link

https://github.com/nvim-lualine/lualine.nvim/blob/master/lua/lualine.lua#L567
This line doesn't restore the global 'winbar', because lualine never sets the global 'winbar'.
I am not sure why but Goyo's window uses the global winbar option,and lualine not setting global winbar causes the winbar to stay in Goyo.
fixes(#1122)

@Sam-programs Sam-programs changed the title fix: set option to nil if not cached fix: set option to nil if not cached and set by lualine Nov 28, 2023
@shadmansaleh
Copy link
Member

I don't think if an option isn't set by us we should touch it when it's being restored. This should probably be fixed on Goyo so it properly hides and unhides lualine. We could probably throw a user even when lualine is being hidden or unhidden. But I haven't seen interest in something like that yet. So probably not necessary for now.

Thanks for looking into it.

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