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

Colorscheme not being set #71

Closed
Shivansh-007 opened this issue Jun 25, 2021 · 4 comments · Fixed by #293
Closed

Colorscheme not being set #71

Shivansh-007 opened this issue Jun 25, 2021 · 4 comments · Fixed by #293

Comments

@Shivansh-007
Copy link

I have configured tokyonight to use day version but it isn't getting set but when i do lua print(vim.g.tokyonight_style) it prints day. So it is getting configured but not getting set for some reason. Same for the night, it gets set to storm always.

Screenshot from 2021-06-25 16-35-20

@gegoune
Copy link

gegoune commented Jun 25, 2021

Make sure you set vim.g.tokyonight_style before calling colorscheme.

@Shivansh-007
Copy link
Author

Yep I do, I use a different settings but for the issue I took the example from the README so the code is repetitive.

Screenshot from 2021-06-25 17-28-32

@folke folke closed this as completed in 67d58e2 Jun 25, 2021
@folke
Copy link
Owner

folke commented Jun 25, 2021

I think your config is loading the colorscheme twice.

I just pushed a fix, so that the new settings will be picked up when running the second time.

If it works for you now, I would definitely check why you're loading it twice :)

@Shivansh-007
Copy link
Author

Perfect! That works thanks :D

riley-martine pushed a commit to riley-martine/tokyonight.nvim that referenced this issue Dec 7, 2023
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 a pull request may close this issue.

3 participants