Add a python language definition.

imgbot
Blaž Hrastnik 3 years ago
parent 3bab640491
commit fb792c5bca

@ -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 = " " }

@ -5,6 +5,7 @@
"operator" = "#dbbfef" # lilac
# "property" = "#a4a0e8" # lavender
"property" = "#ffffff" # white
"variable" = "#a4a0e8" # lavender
"variable.parameter" = "#a4a0e8" # lavender
# TODO distinguish type from type.builtin?
"type" = "#ffffff" # white
@ -12,6 +13,7 @@
"constructor" = "#dbbfef" # lilac
"function" = "#ffffff" # white
"function.macro" = "#dbbfef" # lilac
"function.builtin" = "#ffffff" # white
"comment" = "#697C81" # sirocco
"variable.builtin" = "#9ff28f" # mint
"constant" = "#ffffff" # white
@ -32,8 +34,6 @@
# concat (ERROR) @syntax-error and "MISSING ;" selectors for errors
"module" = "#ff0000"
"variable" = "#a4a0e8" # lavender
"function.builtin" = "#ff0000"
"ui.background" = { bg = "#3b224c" } # midnight
"ui.linenr" = { fg = "#5a5977" } # comet

Loading…
Cancel
Save