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

local chroma styles #28

Open
sharethewisdom opened this issue Jun 11, 2020 · 1 comment
Open

local chroma styles #28

sharethewisdom opened this issue Jun 11, 2020 · 1 comment
Labels
discussion The feature / idea is still under discussion enhancement New feature or request

Comments

@sharethewisdom
Copy link

I automatically trigger a script when I change the my terminal's configuration. This way I can toggle a dark of light theme by exporting $PISTOL_CHROMA_STYLE.

However, I'd like to preview with the same colorscheme as in vim, and I'm unable to find a style that fits my criteria:

  • does not set background colors (e.g. text against semi-transparent terminal background)
  • has a readable dark and a light variant
  • was shared in other formats by users of other programs (vim and it's plugins in particular)

Nikyle Nguyen's papercolor-theme has been made available for a variety of programs. Should I try to add one to the styles over at the chroma/pygments repository, or could you adapt a mechanism for including a local file? This would make testing easier.

@doronbehar
Copy link
Owner

doronbehar commented Jun 11, 2020

I think chroma's styles are compiled, which is probably a good reason why they are so fast:

https://github.com/alecthomas/chroma#styles

https://github.com/alecthomas/chroma/tree/master/styles

@doronbehar doronbehar added discussion The feature / idea is still under discussion enhancement New feature or request labels Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion The feature / idea is still under discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants