doronbehar / pistol

General purpose file previewer designed for Ranger, Lf to make scope.sh redundant
MIT License
322 stars 7 forks source link

local chroma styles #28

Open sharethewisdom opened 4 years ago

sharethewisdom commented 4 years ago

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:

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 commented 4 years ago

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