on master help sign in
Add a python language definition.
fb792c5Blaž Hrastnik
languages.toml+12
@@ -59,3 +59,15 @@ roots = []
59path = "../helix-syntax/languages/tree-sitter-html"
59path = "../helix-syntax/languages/tree-sitter-html"
60
60
61indent = { tab-width = 2, unit = " " }
61indent = { tab-width = 2, unit = " " }
62+
63+[[language]]
64+name = "python"
65+scope = "source.python"
66+injection-regex = "python"
67+file-types = ["py"]
68+roots = []
69+path = "../helix-syntax/languages/tree-sitter-python"
70+
71+language-server = { command = "pyls" }
72+# TODO: pyls needs utf-8 offsets
73+indent = { tab-width = 2, unit = " " }
theme.toml+2−2
@@ -5,6 +5,7 @@
5"operator" = "#dbbfef" # lilac
5"operator" = "#dbbfef" # lilac
6# "property" = "#a4a0e8" # lavender
6# "property" = "#a4a0e8" # lavender
7"property" = "#ffffff" # white
7"property" = "#ffffff" # white
8+"variable" = "#a4a0e8" # lavender
8"variable.parameter" = "#a4a0e8" # lavender
9"variable.parameter" = "#a4a0e8" # lavender
9# TODO distinguish type from type.builtin?
10# TODO distinguish type from type.builtin?
10"type" = "#ffffff" # white
11"type" = "#ffffff" # white
@@ -12,6 +13,7 @@
12"constructor" = "#dbbfef" # lilac
13"constructor" = "#dbbfef" # lilac
13"function" = "#ffffff" # white
14"function" = "#ffffff" # white
14"function.macro" = "#dbbfef" # lilac
15"function.macro" = "#dbbfef" # lilac
16+"function.builtin" = "#ffffff" # white
15"comment" = "#697C81" # sirocco
17"comment" = "#697C81" # sirocco
16"variable.builtin" = "#9ff28f" # mint
18"variable.builtin" = "#9ff28f" # mint
17"constant" = "#ffffff" # white
19"constant" = "#ffffff" # white
@@ -32,8 +34,6 @@
32# concat (ERROR) @syntax-error and "MISSING ;" selectors for errors
34# concat (ERROR) @syntax-error and "MISSING ;" selectors for errors
33
35
34"module" = "#ff0000"
36"module" = "#ff0000"
35−"variable" = "#a4a0e8" # lavender
36−"function.builtin" = "#ff0000"
37
37
38"ui.background" = { bg = "#3b224c" } # midnight
38"ui.background" = { bg = "#3b224c" } # midnight
39"ui.linenr" = { fg = "#5a5977" } # comet
39"ui.linenr" = { fg = "#5a5977" } # comet