mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
TOML
62 lines
1.3 KiB
TOML
[[language]]
|
|
name = "rust"
|
|
scope = "source.rust"
|
|
injection-regex = "rust"
|
|
file-types = ["rs"]
|
|
roots = []
|
|
path = "../helix-syntax/languages/tree-sitter-rust"
|
|
|
|
language-server = { command = "rust-analyzer" }
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
[[language]]
|
|
name = "toml"
|
|
scope = "source.toml"
|
|
injection-regex = "toml"
|
|
file-types = ["toml"]
|
|
roots = []
|
|
path = "../helix-syntax/languages/tree-sitter-toml"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
[[language]]
|
|
name = "cpp"
|
|
scope = "source.cpp"
|
|
injection-regex = "cpp"
|
|
file-types = ["cc", "cpp", "hpp", "h"]
|
|
roots = []
|
|
path = "../helix-syntax/languages/tree-sitter-cpp" # TODO: also C highlights
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
[[language]]
|
|
name = "javascript"
|
|
scope = "source.js"
|
|
injection-regex = "^(js|javascript)$"
|
|
file-types = ["js"]
|
|
roots = []
|
|
path = "../helix-syntax/languages/tree-sitter-javascript"
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
[[language]]
|
|
name = "css"
|
|
scope = "source.css"
|
|
injection-regex = "css"
|
|
file-types = ["css"]
|
|
roots = []
|
|
path = "../helix-syntax/languages/tree-sitter-css"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
[[language]]
|
|
name = "html"
|
|
scope = "text.html.basic"
|
|
injection-regex = "html"
|
|
file-types = ["html"]
|
|
roots = []
|
|
path = "../helix-syntax/languages/tree-sitter-html"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|