Add .config/helix/config.toml

Add .config/helix/languages.toml
This commit is contained in:
Felix Delattre 2023-03-06 23:43:03 +01:00
parent 1925479e76
commit e973bafc44
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,22 @@
theme = "sonokai"
[keys.normal]
"backspace" = { c = ":config-open"}
"backspace" = { r = [":w", ":config-reload"]}
[editor.lsp]
display-messages = true
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.statusline]
left = ["mode", "spinner"]
center = ["file-name"]
right = ["diagnostics", "selections", "position", "file-encoding", "file-line-ending", "file-type"]
separator = "│"
mode.normal = "NORMAL"
mode.insert = "INSERT"
mode.select = "SELECT"

View File

@ -0,0 +1,22 @@
[[language]]
name = "python"
roots = ["pyproject.toml"]
formatter = { command = "black", args = ["--quiet", "-"] }
#language-server = { command = "pyright-langserver", args = ["--stdio"] }
config = {}
auto-format = true
#name = "python"
#scope = "source.python"
#injection-regex = "python"
#file-types = ["py","pyi","py3","pyw","ptl",".pythonstartup",".pythonrc","SConstruct"]
#shebangs = ["python"]
#roots = []
#comment-token = "#"
#auto-format = true
#language-server = { command = "pylsp" }
#indent = { tab-width = 4, unit = " " }
#formatter = { command = "black", args = ["--quiet", "-"] }
#[[grammar]]
#name = "python"
#source = { git = "https://github.com/tree-sitter/tree-sitter-python", rev = "62827156d01c74dc1538266344e788da74536b8a" }