aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-07 04:51:09 +0000
committerBlaž Hrastnik2021-04-07 04:51:09 +0000
commitfb792c5bcacee115949fd9311e4155fc4fa999fa (patch)
treeee03d6d96c57d5d34611f02d4e8305a6374c5c4b /languages.toml
parent3bab640491be6c065e7cf11672f49a1b41c15e99 (diff)
Add a python language definition.
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml12
1 files changed, 12 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 981fca09..72f30ca4 100644
--- a/languages.toml
+++ b/languages.toml
@@ -59,3 +59,15 @@ roots = []
path = "../helix-syntax/languages/tree-sitter-html"
indent = { tab-width = 2, unit = " " }
+
+[[language]]
+name = "python"
+scope = "source.python"
+injection-regex = "python"
+file-types = ["py"]
+roots = []
+path = "../helix-syntax/languages/tree-sitter-python"
+
+language-server = { command = "pyls" }
+# TODO: pyls needs utf-8 offsets
+indent = { tab-width = 2, unit = " " }