diff options
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" |