-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ghostty configuration support (#12703)
Showing
3 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
; extends | ||
; Comments | ||
(comment) @comment | ||
|
||
; Keys | ||
(property) @variable | ||
|
||
; Values | ||
(boolean) @constant.builtin.boolean | ||
|
||
|
||
[ | ||
(number) | ||
(adjustment) | ||
] @constant.numeric | ||
|
||
[ | ||
"+" | ||
"=" | ||
(keybind_trigger ">") | ||
] @operator | ||
|
||
(":") @punctuation.delimiter | ||
|
||
; (color) are hex values | ||
(color "#" @punctuation.special | ||
(#eq? @punctuation.special "#")) | ||
|
||
(path_value "?" @keyword.control.conditional | ||
(#eq? @keyword.control.conditional "?")) | ||
|
||
; `palette` | ||
(palette_index) @variable.other.member | ||
|
||
; `path_directive` | ||
(path_directive (property) @keyword.import) | ||
(path_directive (path_value (string) @string.special.path )) | ||
|
||
|
||
(action_name) @function.builtin | ||
(action_argument (string) @variable.parameter ) | ||
|
||
; (tuple) | ||
(tuple "," @punctuation.delimiter.special | ||
(#eq? @punctuation.delimiter.special ",")) | ||
|
||
[ | ||
(string) | ||
(color) | ||
] @string | ||
|
||
; clear is a special keyword that clear all existing keybind up to that point | ||
((keybind_value) @keyword | ||
(#eq? @keyword "clear")) | ||
|
||
; `keybind` | ||
(keybind_value) @string.special | ||
|
||
; NOTE: The order here matters! | ||
[ | ||
(key_qualifier) | ||
(keybind_modifier) | ||
] @attribute | ||
|
||
[ | ||
(modifier_key) | ||
(key) | ||
] @constant.builtin |