helix -> languages: Changed python LSPs

This commit is contained in:
GaspardCulis 2024-05-20 11:31:39 +02:00
parent 81b410af95
commit 5172ccc3e6
No known key found for this signature in database
GPG key ID: BC18146756955609

View file

@ -20,10 +20,26 @@ runInTerminal = false
[[language]] [[language]]
name = "python" name = "python"
roots = ["pyproject.toml", "setup.py", "Poetry.lock", ".git"] language-servers = [ "pyright", "ruff" ]
# language-servers = [{ command = "pyright-langserver", args = ["--stdio"] }]
[language-server.pyright.config.python.analysis]
typeCheckingMode = "basic"
[language-server.ruff]
command = "ruff-lsp"
[language-server.ruff.config.settings]
args = ["--ignore", "E501"]
[language.formatter]
command = "black"
args = ["--line-length", "88", "--quiet", "-"]
[[language]]
name = "astro"
auto-format = true auto-format = true
formatter = {command = 'black', args = ["--quiet", "-"]} language-servers = [ "astro-ls" ]
[language-server.astro-ls] [language-server.astro-ls]
command = "astro-ls" command = "astro-ls"
@ -31,11 +47,6 @@ args = ["--stdio"]
config = {typescript = {tsdk = "/home/gaspard/.local/share/fnm/node-versions/v20.11.1/installation/lib/node_modules/typescript/lib"}, environment = "node"} config = {typescript = {tsdk = "/home/gaspard/.local/share/fnm/node-versions/v20.11.1/installation/lib/node_modules/typescript/lib"}, environment = "node"}
timeout = 2 timeout = 2
[[language]]
name = "astro"
auto-format = true
language-servers = [ "astro-ls" ]
[language-server.spyglass] [language-server.spyglass]
command="spyglassmc-language-server" command="spyglassmc-language-server"