Skip to content

Commit

Permalink
Set xonsh ptk2 color style to pygments default
Browse files Browse the repository at this point in the history
donnemartin committed Mar 17, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9acc873 commit 8e7e431
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions xonsh/ptk2/shell.py
Original file line number Diff line number Diff line change
@@ -139,11 +139,7 @@ def singleline(
"include_default_pygments_style": False,
}
if builtins.__xonsh__.env.get("COLOR_INPUT"):
if HAS_PYGMENTS:
prompt_args["lexer"] = PygmentsLexer(pyghooks.XonshLexer)
style = style_from_pygments_cls(pyghooks.xonsh_style_proxy(self.styler))
else:
style = style_from_pygments_dict(DEFAULT_STYLE_DICT)
style = style_from_pygments_dict(DEFAULT_STYLE_DICT)

prompt_args["style"] = style

0 comments on commit 8e7e431

Please sign in to comment.