This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/helix/languages.toml

86 lines
2.5 KiB
TOML
Raw Normal View History

2023-04-04 09:40:20 -05:00
[[language]]
name = "javascript"
2023-04-07 22:28:29 -05:00
scope = "source.js"
injection-regex = "^(js|javascript)$"
file-types = ["js", "jsx", "mjs"]
2023-04-04 09:40:20 -05:00
shebangs = ["deno", "node"]
2023-04-07 22:28:29 -05:00
roots = ["deno.jsonc", "deno.json", "package.json", "tsconfig.json"]
comment-token = "//"
2023-04-04 09:40:20 -05:00
config = { enable = true, lint = true, unstable = true }
language-server = { command = "deno", args = ["lsp"], language-id = "javascript" }
2023-04-07 22:28:29 -05:00
indent = { tab-width = 2, unit = " " }
2023-04-04 09:40:20 -05:00
auto-format = true
[[language]]
name = "jsx"
2023-04-07 22:28:29 -05:00
scope = "source.jsx"
injection-regex = "jsx"
file-types = ["jsx"]
2023-04-04 09:40:20 -05:00
shebangs = ["deno", "node"]
2023-04-07 22:28:29 -05:00
roots = ["deno.jsonc", "deno.json", "package.json", "tsconfig.json"]
comment-token = "//"
2023-04-04 09:40:20 -05:00
config = { enable = true, lint = true, unstable = true }
language-server = { command = "deno", args = ["lsp"], language-id = "javascriptreact" }
2023-04-07 22:28:29 -05:00
indent = { tab-width = 2, unit = " " }
grammar = "javascript"
2023-04-04 09:40:20 -05:00
auto-format = true
[[language]]
name = "typescript"
2023-04-07 22:28:29 -05:00
scope = "source.ts"
injection-regex = "^(ts|typescript)$"
file-types = ["ts"]
2023-04-04 09:40:20 -05:00
shebangs = ["deno", "node"]
2023-04-07 22:28:29 -05:00
roots = ["deno.jsonc", "deno.json", "package.json", "tsconfig.json"]
2023-04-04 09:40:20 -05:00
config = { enable = true, lint = true, unstable = true }
language-server = { command = "deno", args = ["lsp"], language-id = "typescript" }
2023-04-07 22:28:29 -05:00
indent = { tab-width = 2, unit = " " }
2023-04-04 09:40:20 -05:00
auto-format = true
[[language]]
name = "tsx"
2023-04-07 22:28:29 -05:00
scope = "source.tsx"
injection-regex = "^(tsx)$" # |typescript
file-types = ["tsx"]
2023-04-04 09:40:20 -05:00
shebangs = ["deno", "node"]
2023-04-07 22:28:29 -05:00
roots = ["deno.jsonc", "deno.json", "package.json", "tsconfig.json"]
2023-04-04 09:40:20 -05:00
config = { enable = true, lint = true, unstable = true }
language-server = { command = "deno", args = ["lsp"], language-id = "typescriptreact" }
2023-04-07 22:28:29 -05:00
indent = { tab-width = 2, unit = " " }
auto-format = true
[[language]]
name = "jsonc"
scope = "source.jsonc"
injection-regex = "^(jsonc)$"
file-types = ["jsonc"]
shebangs = ["deno", "node"]
roots = ["deno.jsonc", "deno.json", "package.json", "tsconfig.json"]
config = { enable = true, lint = true, unstable = true }
language-server = { command = "deno", args = ["lsp"], language-id = "jsonc" }
indent = { tab-width = 2, unit = " " }
2023-04-04 09:40:20 -05:00
auto-format = true
2022-10-19 09:29:01 -05:00
[[language]]
name = "elixir"
auto-format = true
2022-12-01 10:30:21 -06:00
[[language]]
name = "nim"
scope = "source.nim"
injection-regex = "nim"
file-types = ["nim","nims"]
shebangs = ["nim"]
roots = []
comment-token = "#"
language-server = { command = "nimlangserver" }
indent = { tab-width = 2, unit = " " }
2022-12-01 17:17:50 -06:00
auto-format = true
2022-12-01 10:30:21 -06:00
2023-04-25 14:13:44 -05:00
[[language]]
name = "html"
auto-format = false
2022-12-01 10:30:21 -06:00
[[grammar]]
name = "nim"
source = { git = "https://github.com/aMOPel/tree-sitter-nim", rev = "8ce3627827e45a5835004391ff5ffcfe029ae6cf" }