mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: centralize pygments.literal.string style configuration in _get_style method and simplify calling code
This commit is contained in:
parent
fd9dc9e8d2
commit
725b5f7063
1 changed files with 2 additions and 4 deletions
|
@ -258,6 +258,7 @@ class InputOutput:
|
|||
style_dict.setdefault("", self.user_input_color)
|
||||
style_dict.update(
|
||||
{
|
||||
"pygments.literal.string": f"bold italic {self.user_input_color}",
|
||||
"completion-menu": (
|
||||
f"bg:{self.completion_menu_bg_color} {self.completion_menu_color}"
|
||||
),
|
||||
|
@ -347,10 +348,7 @@ class InputOutput:
|
|||
inp = ""
|
||||
multiline_input = False
|
||||
|
||||
style_dict = {
|
||||
"pygments.literal.string": f"bold italic {self.user_input_color}",
|
||||
}
|
||||
style = self._get_style(style_dict)
|
||||
style = self._get_style()
|
||||
|
||||
completer_instance = ThreadedCompleter(
|
||||
AutoCompleter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue