mirror of
https://github.com/helix-editor/helix
synced 2024-05-21 04:06:06 +02:00
Support Typst 0.11 (#10321)
* Update the tree sitter to support Typst 0.11 and changed the lsp to Tinymist * Fixed * Added typst-lsp & tinymist --------- Co-authored-by: Idobenhamo <idobenhamo@users.noreply.github.com>
This commit is contained in:
parent
8e161723ee
commit
68765f51c9
|
@ -197,7 +197,7 @@
|
||||||
| tsx | ✓ | ✓ | ✓ | `typescript-language-server` |
|
| tsx | ✓ | ✓ | ✓ | `typescript-language-server` |
|
||||||
| twig | ✓ | | | |
|
| twig | ✓ | | | |
|
||||||
| typescript | ✓ | ✓ | ✓ | `typescript-language-server` |
|
| typescript | ✓ | ✓ | ✓ | `typescript-language-server` |
|
||||||
| typst | ✓ | | | `typst-lsp` |
|
| typst | ✓ | | | `tinymist`, `typst-lsp` |
|
||||||
| ungrammar | ✓ | | | |
|
| ungrammar | ✓ | | | |
|
||||||
| unison | ✓ | | ✓ | |
|
| unison | ✓ | | ✓ | |
|
||||||
| uxntal | ✓ | | | |
|
| uxntal | ✓ | | | |
|
||||||
|
|
|
@ -102,6 +102,7 @@ yaml-language-server = { command = "yaml-language-server", args = ["--stdio"] }
|
||||||
zls = { command = "zls" }
|
zls = { command = "zls" }
|
||||||
blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] }
|
blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] }
|
||||||
typst-lsp = { command = "typst-lsp" }
|
typst-lsp = { command = "typst-lsp" }
|
||||||
|
tinymist = { command = "tinymist" }
|
||||||
pkgbuild-language-server = { command = "pkgbuild-language-server" }
|
pkgbuild-language-server = { command = "pkgbuild-language-server" }
|
||||||
helm_ls = { command = "helm_ls", args = ["serve"] }
|
helm_ls = { command = "helm_ls", args = ["serve"] }
|
||||||
ember-language-server = { command = "ember-language-server", args = ["--stdio"] }
|
ember-language-server = { command = "ember-language-server", args = ["--stdio"] }
|
||||||
|
@ -3094,7 +3095,7 @@ scope = "source.typst"
|
||||||
injection-regex = "typst"
|
injection-regex = "typst"
|
||||||
file-types = ["typst", "typ"]
|
file-types = ["typst", "typ"]
|
||||||
comment-token = "//"
|
comment-token = "//"
|
||||||
language-servers = ["typst-lsp"]
|
language-servers = ["tinymist", "typst-lsp"]
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[language.auto-pairs]
|
[language.auto-pairs]
|
||||||
|
@ -3106,7 +3107,7 @@ indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "typst"
|
name = "typst"
|
||||||
source = { git = "https://github.com/uben0/tree-sitter-typst", rev = "ecf8596336857adfcd5f7cbb3b2aa11a67badc37" }
|
source = { git = "https://github.com/uben0/tree-sitter-typst", rev = "13863ddcbaa7b68ee6221cea2e3143415e64aea4" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "nunjucks"
|
name = "nunjucks"
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
; OPERATOR
|
; OPERATOR
|
||||||
(in ["in" "not"] @keyword.operator)
|
(in ["in" "not"] @keyword.operator)
|
||||||
|
(context "context" @keyword.control)
|
||||||
(and "and" @keyword.operator)
|
(and "and" @keyword.operator)
|
||||||
(or "or" @keyword.operator)
|
(or "or" @keyword.operator)
|
||||||
(not "not" @keyword.operator)
|
(not "not" @keyword.operator)
|
||||||
|
@ -45,12 +46,9 @@
|
||||||
(string) @string
|
(string) @string
|
||||||
(content ["[" "]"] @operator)
|
(content ["[" "]"] @operator)
|
||||||
(bool) @constant.builtin.boolean
|
(bool) @constant.builtin.boolean
|
||||||
(builtin) @constant.builtin
|
|
||||||
(none) @constant.builtin
|
(none) @constant.builtin
|
||||||
(auto) @constant.builtin
|
(auto) @constant.builtin
|
||||||
(ident) @variable
|
(ident) @variable
|
||||||
(call
|
|
||||||
item: (builtin) @function.builtin)
|
|
||||||
|
|
||||||
; MARKUP
|
; MARKUP
|
||||||
(item "-" @markup.list)
|
(item "-" @markup.list)
|
||||||
|
|
Loading…
Reference in New Issue