From fb792c5bcacee115949fd9311e4155fc4fa999fa Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 7 Apr 2021 13:51:09 +0900 Subject: Add a python language definition. --- languages.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'languages.toml') 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 = " " } -- cgit v1.2.3-70-g09d2