Update .config/helix/languages.toml

This commit is contained in:
Kasper Juul Hermansen 2024-02-07 21:19:26 +01:00
parent 1b2c6fc2a5
commit 9407bc4675
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -22,3 +22,16 @@ args = ["server", "-m", "stream"]
[[grammar]] [[grammar]]
name = "graphql" name = "graphql"
source = {git = "https://github.com/bkegley/tree-sitter-graphql", rev = "5e66e961eee421786bdda8495ed1db045e06b5fe"} source = {git = "https://github.com/bkegley/tree-sitter-graphql", rev = "5e66e961eee421786bdda8495ed1db045e06b5fe"}
[[language]]
name = "typescript"
scope = "source.ts"
injection-regex = "(ts|typescript)"
file-types = ["ts", "mts", "cts"]
language-id = "typescript"
shebangs = ["deno", "ts-node"]
language-servers = [ "typescript-language-server" ]
indent = { tab-width = 2, unit = " " }
formatter = { command = 'prettier', args = ["--parser", "typescript"] }
auto-format = true