diff: Add a option for pygments style

This commit is contained in:
Kovid Goyal 2018-05-08 23:08:20 +05:30
parent 7365ed9b05
commit 51e589c7e6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,10 @@
# file.abc use a setting of xyz:abc
syntax_aliases pyj:py recipe:py
# The pygments color scheme to use. See https://help.farbox.com/pygments.html
# for a list of schemes.
pygments_style default
# Colors
foreground black
background white

View File

@ -242,7 +242,7 @@ def on_job_done(self, job_id, job_result):
self.draw_screen()
if initialize_highlighter is not None and not self.highlighting_done:
self.highlighting_done = True
initialize_highlighter()
initialize_highlighter(self.opts.pygments_style)
self.start_job('highlight', highlight_collection, self.collection, self.opts.syntax_aliases)
elif job_id == 'highlight':
hdata = job_result['result']