bat-extras
bat-extras copied to clipboard
batman: bad highlighting when BAT_THEME is set
When the BAT_THEME is set to something different than the default batman does not do meaningful syntax highlighting.
Screenshots:
When BAT_THEME is default (or not set):

When BAT_THEME is set (in the screenshot to 'base16'):


I see what you mean, and this appears to be a bat or manpage syntax issue. Following the same instructions for using bat as a man pager on the bat readme, I get the same result as using batman:

Also to note, some themes (e.g. Dracula) appear to work fine:

I don't think there's anything I can do to fix this within bat-extras, and you might need to open up an issue on the bat repo to get it fixed. As a possible workaround though, I could add a --theme=[theme] flag that you could add in an alias?