bakdata / kpops

Deploy Kafka pipelines to Kubernetes
https://bakdata.github.io/kpops
MIT License
12 stars 1 forks source link

Allow setting syntax theme for generate step #170

Closed torbsto closed 1 year ago

torbsto commented 1 year ago

rich defaults to monokai as a syntax theme. This makes it unpleasant to read when using light color themes:

Monokai

The syntax theme can be modified by passing a valid pygments theme when creating the syntax object.

disrupted commented 1 year ago

I am leaning more towards using the special ANSI themes. This way the user's terminal colors are used for the syntax highlighting. Could you try how this looks for you?

torbsto commented 1 year ago

But what would you choose - ansi_light or ansi_dark? I think ultimately it's the same problem. Also, it seems like it doesn't work for my setup. They both produce the same output and don't use any colors except for strings. Screenshot from 2023-04-06 13-04-46

I've written a wrapper to pipe the output of kpops generate to bat -l yaml, so this issue could be closed from my side.