diff options
author | Blaž Hrastnik | 2021-03-25 06:26:25 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-25 06:26:25 +0000 |
commit | e3c4edae32f6d70bf20655c7c25b3cdf39f3f281 (patch) | |
tree | 5351a5a797de5f213b87f25ae4ba049c8e74d11b /languages.toml | |
parent | a900159a863c24e4afb1485d8dcff760f722f36b (diff) |
Add the machinery to load syntax config from TOML.
It's embedded into the binary at build time for now, but it's progress.
Diffstat (limited to 'languages.toml')
-rw-r--r-- | languages.toml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml new file mode 100644 index 00000000..eca55a13 --- /dev/null +++ b/languages.toml @@ -0,0 +1,20 @@ +[[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 = " " } |