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

Colors in .tmTheme seem very different from colors in Neovim #27

Open
cohml opened this issue Jan 20, 2025 · 2 comments
Open

Colors in .tmTheme seem very different from colors in Neovim #27

cohml opened this issue Jan 20, 2025 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@cohml
Copy link

cohml commented Jan 20, 2025

Uploading as a blank issue rather than a bug report because the problem could be on my side... But here goes.

Absolutely love these colors (:colorscheme pastelnight)!

Image

However, when I use extras/sublime/pastelnight_default.tmTheme as a theme with bat (which respects the same .tmTheme convention as Sublime Text), the colors appear completely different:

Image

For transparency, to get bat to recognize the theme, I co-opted this tool (specifically this script, overriding the URL to tokyonight.nvim with the URL to pastelnight.nvim), then ran bat some_file.lua --theme pastelnight_default.

I am quite inexperienced with these themes. Have I misunderstood how things should work? My desire was to use the same colors between bat and Neovim. Any advice appreciated.

@pauchiner
Copy link
Owner

@cohml, the extras code and templates for this theme were directly forked from tokyonight.nvim because folke did an excellent job with that. I then manually adapted the templates to Pastelnight.

However, I can see that the Sublime Text template is not fully updated. My apologies for not checking that.

I’m currently working on a side project that will be released this month, so I don’t have the time to correct this issue right now.

If you’d like to submit a PR with the updated code, I’d greatly appreciate it. If not, I’ll submit one when I have time.

@pauchiner
Copy link
Owner

This is the code that generates the sublime text file:

https://github.com/pauchiner/pastelnight.nvim/blob/main/lua/pastelnight/extra/sublime.lua

As you can see, it just get the theme colors and are passed as template literals through the template, but most of them aren't set.

@pauchiner pauchiner self-assigned this Jan 23, 2025
@pauchiner pauchiner added bug Something isn't working good first issue Good for newcomers labels Jan 23, 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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants