Skip to content

Commit

Permalink
enable styling for all
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jpq committed Jul 25, 2024
1 parent 13e8110 commit 7334155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chadtree/view/ls_colours.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ def _parse_codes(
) -> Iterator[Union[_Style, Tuple[_Ground, Union[_AnsiColour, _Colour]]]]:
it = (code.lstrip("0") for code in codes.split(";"))
for code in it:
style = _STYLE_TABLE.get(code)
if style:
if style := _STYLE_TABLE.get(code):
yield style
continue
ground = _GROUND_TABLE.get(code)
Expand Down Expand Up @@ -273,6 +272,7 @@ def _parseHLGroup(styling: _Styling, discrete_colours: Mapping[str, str]) -> HLg
cterm=cterm,
ctermfg=ctermfg,
ctermbg=ctermbg,
gui=cterm,
guifg=guifg,
guibg=guibg,
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
std2@https://github.com/ms-jpq/std2/archive/d8ac12686cdf0d640aed7cee6a981b1835d1724e.tar.gz
pynvim_pp@https://github.com/ms-jpq/pynvim_pp/archive/34e3a027c595981886d7efd1c91071f3eaa4715d.tar.gz
pynvim_pp@https://github.com/ms-jpq/pynvim_pp/archive/f0a1cb889652254026a6bc4349c54367946e0ba1.tar.gz
PyYAML

0 comments on commit 7334155

Please sign in to comment.