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

bug: Vim versions are resetting the g:colors_name improperly #686

Closed
4 tasks done
ychin opened this issue Feb 15, 2025 · 0 comments · May be fixed by #664
Closed
4 tasks done

bug: Vim versions are resetting the g:colors_name improperly #686

ychin opened this issue Feb 15, 2025 · 0 comments · May be fixed by #664
Labels
bug Something isn't working

Comments

@ychin
Copy link

ychin commented Feb 15, 2025

Did you check docs and existing issues?

  • I have read all the tokyonight.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of tokyonight.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

(Vim, not Neovim)

Operating system/version

macOS 15.3.1

Describe the bug

The Vim (not Neovim) version of the color schemes in the extra/ folders are not setting g:colors_name correctly. The correct ordering should be first calling hi clear, then let g:colors_name = "tokyonight-moon". Currently the generated Vim colorschemes are doing it the other way round which leads to the g:colors_name variable being cleared.

Example:

let g:colors_name = "tokyonight-moon"
hi clear

Steps To Reproduce

  1. Run Vim
  2. :color tokyonight
  3. echo g:colors_name

Expected Behavior

g:colors_name should be set.

Repro

@ychin ychin added the bug Something isn't working label Feb 15, 2025
@folke folke closed this as completed in ce13047 Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant