attq/.helix/languages.toml
2026-02-03 05:04:25 +00:00

21 lines
699 B
TOML

[[language]]
name = "typescript"
scope = "source.ts"
injection-regex = "(ts|typescript)"
language-id = "typescript"
file-types = ["ts", "mts", "cts"]
shebangs = ["deno", "bun", "ts-node"]
roots = [ "package.json", "tsconfig.json" ]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server", "vscode-eslint-language-server" ]
indent = { tab-width = 2, unit = " " }
[[language]]
name = "json"
scope = "source.json"
injection-regex = "json"
file-types = [ "json" ]
language-servers = [ "vscode-json-language-server" ]
auto-format = false # Prevent formatter from removing newline at end of file
indent = { tab-width = 2, unit = " " }