Skip to content

feat(extra): add Pygments style classes and plugin #705

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

joshuadavidthomas
Copy link

Description

Adds support for Pygments with custom Style classes for each theme. I tried to keep the token style mapping as close as possible to the LSP and Treesitter styles.

NOTE: Just a quick note on why this extra is not just using the template system only and instead defining and adding the core tokens and the style mappings as a module level function. There are many other tools that also leverage the Pygments token definitions, so this is here in case later on down the line that extra can just reuse these definitions.

Related Issue(s)

N/A

Screenshots

None yet. Will try to update with some later.

@joshuadavidthomas joshuadavidthomas changed the title feat(extra): add Pygments style classes feat(extra): add Pygments style classes and plugin Mar 31, 2025
@joshuadavidthomas joshuadavidthomas force-pushed the pygments branch 2 times, most recently from 42995de to 25d88e3 Compare April 1, 2025 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant