-
Notifications
You must be signed in to change notification settings - Fork 465
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
Bug: lualine should not override user options unless explicitly requested #921
Comments
I disagree with this. Most people using vim/nvim aren't aware of these options or what they do. And people are usually looking for statuslline & tabline to be always visible. For example, if you're using your tabline to show your gitstatus it doesn't make sense for it only to be visible when there is more than 1 tab. That makes sense when you're using tabline to display only tabs like the builtin tabline . Same goes for statusline I don't think anyone wants their statusline to disappear when they have only one window open. We are already taking over statusline & tabline options. I don't think there's anything wrong with us taking over a few more related options to provide better default behavior. As for #395 I do intend to fix it properly. My idea is to make tabline disappear when the components in tabline all return empty. This lets the components decide when they want to show themselves. And the users can use One more thing is this your account https://github.com/ZyX-I ? |
I would actually not care if I had (known) alternative.
Yes, I created second to use it from work while first is only used from home. Not any real kind of active on either these days though… |
…column when navigating up/down nvim-lualine/lualine.nvim#921
Self Checks
Specifically, Feat: Hide the tabline conditionally #395 does mention the issue regarding
showtabline
, but it contains more generic feature request while this issue is more limited in scope; and existence of Feat: Respect user-setlaststatus
whenglobalstatus
not explicitly set #670 suggests that current behaviour of ignoringlaststatus
should be classified as a bug.How to reproduce the problem
-u exampleConfig.vim
(replace paths in first line with appropriate ones).:set showtabline? laststatus?
.Expected behaviour
Neovim reports both options as being equal to 1.
Actual behaviour
They are both set to 2.
Minimal config to reproduce the issue
Additional information
Workaround using OptionSet from #395 used as-is not good idea because it prevents setting this option to anything else. It is obviously possible to create workaround for this issue of the workaround, but having options to configure options is something strange. Also just setting options after setup call for some reason works in the minimal config above, but not in my actual config.
The text was updated successfully, but these errors were encountered: