Skip to content

Commit 9fc2caa

Browse files
authored
feat: add git diff syntax highlighting (#39)
* feat: add git diff syntax highlighting * fix(diff): change position to peach * fix(diff): swap command/filename colors * fix(diff): filenames (HEADER) to pink
1 parent 49a46b5 commit 9fc2caa

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

β€Žtemplates/editor.teraβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ whiskers:
5656
<WordsStyle name="PREPROCESSOR COMMENT" styleID="23" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
5757
<WordsStyle name="PREPROCESSOR COMMENT DOC" styleID="24" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
5858
</LexerType>
59+
<LexerType name="diff" desc="diff file" ext="">
60+
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
61+
<WordsStyle name="COMMENT" styleID="1" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
62+
<WordsStyle name="COMMAND" styleID="2" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="1" fontSize="" />
63+
<WordsStyle name="HEADER" styleID="3" fgColor="{{ pink.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
64+
<WordsStyle name="POSITION" styleID="4" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="1" fontSize="" />
65+
<WordsStyle name="DELETED" styleID="5" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
66+
<WordsStyle name="ADDED" styleID="6" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
67+
</LexerType>
5968
<LexerType name="rust" desc="Rust" ext="">
6069
<WordsStyle name="DEFAULT" styleID="32" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
6170
<WordsStyle name="WHITESPACE" styleID="0" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />

β€Žthemes/catppuccin-frappe.xmlβ€Ž

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žthemes/catppuccin-latte.xmlβ€Ž

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žthemes/catppuccin-macchiato.xmlβ€Ž

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žthemes/catppuccin-mocha.xmlβ€Ž

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)