@@ -19,6 +19,26 @@ path = "../helix-syntax/languages/tree-sitter-toml"
20indent = { tab-width = 2, unit = " " }
20indent = { tab-width = 2, unit = " " }
25+injection-regex = "json"
28+path = "../helix-syntax/languages/tree-sitter-json"
30+indent = { tab-width = 2, unit = " " }
36+file-types = ["c"] # TODO: ["h"]
38+path = "../helix-syntax/languages/tree-sitter-c"
40+indent = { tab-width = 2, unit = " " }
22[[language]]
42[[language]]
23name = "cpp"
43name = "cpp"
24scope = "source.cpp"
44scope = "source.cpp"
@@ -29,6 +49,18 @@ path = "../helix-syntax/languages/tree-sitter-cpp" # TODO: also C highlights
30indent = { tab-width = 2, unit = " " }
50indent = { tab-width = 2, unit = " " }
55+injection-regex = "go"
57+roots = ["Gopkg.toml", "go.mod"]
58+path = "../helix-syntax/languages/tree-sitter-go"
60+language-server = { command = "gopls" }
61+# TODO: gopls needs utf-8 offsets
62+indent = { tab-width = 2, unit = " " }
32[[language]]
64[[language]]
33name = "javascript"
65name = "javascript"
34scope = "source.js"
66scope = "source.js"
@@ -71,3 +103,35 @@ path = "../helix-syntax/languages/tree-sitter-python"
71language-server = { command = "pyls" }
103language-server = { command = "pyls" }
72# TODO: pyls needs utf-8 offsets
104# TODO: pyls needs utf-8 offsets
73indent = { tab-width = 2, unit = " " }
105indent = { tab-width = 2, unit = " " }
109+scope = "source.ruby"
110+injection-regex = "ruby"
113+path = "../helix-syntax/languages/tree-sitter-ruby"
115+language-server = { command = "solargraph", args = ["stdio"] }
116+indent = { tab-width = 2, unit = " " }
120+scope = "source.bash"
121+injection-regex = "bash"
122+file-types = ["sh", "bash"]
124+path = "../helix-syntax/languages/tree-sitter-bash"
126+language-server = { command = "bash-language-server", args = ["start"] }
127+indent = { tab-width = 2, unit = " " }
132+injection-regex = "php"
135+path = "../helix-syntax/languages/tree-sitter-php"
137+indent = { tab-width = 2, unit = " " }