on master help sign in
Add a python language definition.
commitfb792c5bcacee115949fd9311e4155fc4fa999fa authorBlaž Hrastnik <blaz@mxxn.io> dateWed 7 Apr 2021, 13:51 (6 years ago) parent3bab640
2 files changed+14−2
languages.toml+12 theme.toml+2−2
languages.toml+12
@@ -59,3 +59,15 @@ roots = []
5959path = "../helix-syntax/languages/tree-sitter-html"
6060
6161indent = { 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 @@
55"operator" = "#dbbfef" # lilac
66# "property" = "#a4a0e8" # lavender
77"property" = "#ffffff" # white
8+"variable" = "#a4a0e8" # lavender
89"variable.parameter" = "#a4a0e8" # lavender
910# TODO distinguish type from type.builtin?
1011"type" = "#ffffff" # white
@@ -12,6 +13,7 @@
1213"constructor" = "#dbbfef" # lilac
1314"function" = "#ffffff" # white
1415"function.macro" = "#dbbfef" # lilac
16+"function.builtin" = "#ffffff" # white
1517"comment" = "#697C81" # sirocco
1618"variable.builtin" = "#9ff28f" # mint
1719"constant" = "#ffffff" # white
@@ -32,8 +34,6 @@
3234# concat (ERROR) @syntax-error and "MISSING ;" selectors for errors
3335
3436"module" = "#ff0000"
35−"variable" = "#a4a0e8" # lavender
36−"function.builtin" = "#ff0000"
3737
3838"ui.background" = { bg = "#3b224c" } # midnight
3939"ui.linenr" = { fg = "#5a5977" } # comet