File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 154
154
| tsx | ✓ | ✓ | ✓ | ` typescript-language-server ` |
155
155
| twig | ✓ | | | |
156
156
| typescript | ✓ | ✓ | ✓ | ` typescript-language-server ` |
157
+ | typst | ✓ | | | ` typst-lsp ` |
157
158
| ungrammar | ✓ | | | |
158
159
| uxntal | ✓ | | | |
159
160
| v | ✓ | ✓ | ✓ | ` v ` |
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ wgsl_analyzer = { command = "wgsl_analyzer" }
79
79
yaml-language-server = { command = " yaml-language-server" , args = [" --stdio" ] }
80
80
zls = { command = " zls" }
81
81
blueprint-compiler = { command = " blueprint-compiler" , args = [" lsp" ] }
82
+ typst-lsp = { command = " typst-lsp" }
82
83
83
84
84
85
[language-server .lua-language-server ]
@@ -2698,3 +2699,17 @@ file-types = ["webc"]
2698
2699
roots = []
2699
2700
indent = { tab-width = 2 , unit = " " }
2700
2701
grammar = " html"
2702
+
2703
+ [[language ]]
2704
+ name = " typst"
2705
+ scope = " source.typst"
2706
+ injection-regex = " typst"
2707
+ file-types = [" typst" , " typ" ]
2708
+ roots = []
2709
+ comment-token = " //"
2710
+ language-servers = [" typst-lsp" ]
2711
+ indent = { tab-width = 4 , unit = " " }
2712
+
2713
+ [[grammar ]]
2714
+ name = " typst"
2715
+ source = { git = " https://github.com/SeniorMars/tree-sitter-typst" , rev = " 2e66ef4b798a26f0b82144143711f3f7a9e8ea35" }
Original file line number Diff line number Diff line change
1
+ ([(show_expression) (set_expression)] @constant )
2
+ ([(line_comment) (block_comment)] @comment )
3
+ ((identifier) @function )
4
+ ((string_literal) @string )
5
+ ((asssigned_argument) @type )
6
+ (["#"] @punctuation )
7
+ (["+"] @operator )
8
+ (["(" ")" "{" "}" "[" "]"] @punctuation.bracket )
9
+ (["="] @markup.heading )
You can’t perform that action at this time.
0 commit comments