diff options
author | Alexander Brevig | 2023-10-26 23:27:42 +0000 |
---|---|---|
committer | GitHub | 2023-10-26 23:27:42 +0000 |
commit | 290666011971c79e36b5172eea66b315dc52e2c9 (patch) | |
tree | 328e9b8562a8dd916214545a9b89ba1f55cb8670 /languages.toml | |
parent | ef1f4f31b6e0d8338a9f5b8932de9b07ac7bb0a0 (diff) |
Add typst language and lsp (#7474)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'languages.toml')
-rw-r--r-- | languages.toml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml index 77c629e4..a6c9d556 100644 --- a/languages.toml +++ b/languages.toml @@ -88,6 +88,7 @@ wgsl_analyzer = { command = "wgsl_analyzer" } yaml-language-server = { command = "yaml-language-server", args = ["--stdio"] } zls = { command = "zls" } blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] } +typst-lsp = { command = "typst-lsp" } [language-server.ansible-language-server] command = "ansible-language-server" @@ -2913,6 +2914,27 @@ indent = { tab-width = 2, unit = " " } grammar = "html" [[language]] +name = "typst" +scope = "source.typst" +injection-regex = "typst" +file-types = ["typst", "typ"] +roots = [] +comment-token = "//" +language-servers = ["typst-lsp"] +indent = { tab-width = 2, unit = " " } + +[language.auto-pairs] +'(' = ')' +'{' = '}' +'[' = ']' +'$' = '$' +'"' = '"' + +[[grammar]] +name = "typst" +source = { git = "https://github.com/uben0/tree-sitter-typst", rev = "e35aa22395fdde82bbc4b5700c324ce346dfc9e5" } + +[[language]] name = "nunjucks" scope = "text.html.nunjucks" injection-regex = "nunjucks" |