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

Feature request: select random theme multiple times #9

Open
dnagir opened this issue Dec 29, 2023 · 1 comment
Open

Feature request: select random theme multiple times #9

dnagir opened this issue Dec 29, 2023 · 1 comment

Comments

@dnagir
Copy link

dnagir commented Dec 29, 2023

Currently it is possible to set a random theme at 2 points:

  • when the plugin is loaded (when the style.fix = false) by using :colorsheme starry;
  • manually by calling lua require('starry.util').load();

However, once util.load() is called, it is no longer possible to change the to another random because the configuration is updated and the value of style.fix always becomes true.
It is also not possible to set the theme to random one multiple times using :colorsheme starry.

The request would be:

  • calling :colorsheme starry and lua require('starry.util').load() multiple times would select a random theme on every call;
  • the style.fix config option is not updated as it leads to confusion when inspecting it (it turns into true even though it was configured with false);
dnagir added a commit to dnagir/dotfiles that referenced this issue Dec 29, 2023
It allows random theme but only once, see ray-x/starry.nvim#9
@ray-x
Copy link
Owner

ray-x commented Feb 11, 2024

A fix was submitted. Please check if it works for you

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