mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-29 05:27:07 +03:00
Add a python language definition.
This commit is contained in:
parent
3bab640491
commit
fb792c5bca
@ -59,3 +59,15 @@ roots = []
|
|||||||
path = "../helix-syntax/languages/tree-sitter-html"
|
path = "../helix-syntax/languages/tree-sitter-html"
|
||||||
|
|
||||||
indent = { tab-width = 2, unit = " " }
|
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
|
"operator" = "#dbbfef" # lilac
|
||||||
# "property" = "#a4a0e8" # lavender
|
# "property" = "#a4a0e8" # lavender
|
||||||
"property" = "#ffffff" # white
|
"property" = "#ffffff" # white
|
||||||
|
"variable" = "#a4a0e8" # lavender
|
||||||
"variable.parameter" = "#a4a0e8" # lavender
|
"variable.parameter" = "#a4a0e8" # lavender
|
||||||
# TODO distinguish type from type.builtin?
|
# TODO distinguish type from type.builtin?
|
||||||
"type" = "#ffffff" # white
|
"type" = "#ffffff" # white
|
||||||
@ -12,6 +13,7 @@
|
|||||||
"constructor" = "#dbbfef" # lilac
|
"constructor" = "#dbbfef" # lilac
|
||||||
"function" = "#ffffff" # white
|
"function" = "#ffffff" # white
|
||||||
"function.macro" = "#dbbfef" # lilac
|
"function.macro" = "#dbbfef" # lilac
|
||||||
|
"function.builtin" = "#ffffff" # white
|
||||||
"comment" = "#697C81" # sirocco
|
"comment" = "#697C81" # sirocco
|
||||||
"variable.builtin" = "#9ff28f" # mint
|
"variable.builtin" = "#9ff28f" # mint
|
||||||
"constant" = "#ffffff" # white
|
"constant" = "#ffffff" # white
|
||||||
@ -32,8 +34,6 @@
|
|||||||
# concat (ERROR) @syntax-error and "MISSING ;" selectors for errors
|
# concat (ERROR) @syntax-error and "MISSING ;" selectors for errors
|
||||||
|
|
||||||
"module" = "#ff0000"
|
"module" = "#ff0000"
|
||||||
"variable" = "#a4a0e8" # lavender
|
|
||||||
"function.builtin" = "#ff0000"
|
|
||||||
|
|
||||||
"ui.background" = { bg = "#3b224c" } # midnight
|
"ui.background" = { bg = "#3b224c" } # midnight
|
||||||
"ui.linenr" = { fg = "#5a5977" } # comet
|
"ui.linenr" = { fg = "#5a5977" } # comet
|
||||||
|
Loading…
Reference in New Issue
Block a user