1
1
Fork 0

helix/languages.toml aktualisiert

Add pylsp, since ruff does not replace this part
This commit is contained in:
Michael Hoess 2024-03-08 17:08:51 +00:00
parent 5cae7e17e7
commit 4c5213a194
1 changed files with 3 additions and 2 deletions

View File

@ -7,17 +7,18 @@
# Python3-LSP:
# -----------
# python3 -m pip install ruff-lsp black --break-system-packages
# python3 -m pip install ruff-lsp python-lsp_server black --break-system-packages
# in CMK:
# cd ~/local/bin
# ln -s ~/local/lib/python3/bin/ruff* .
# ln -s ~/local/bin/pylsp .
#
# This combo also notifies on unused vars etc.
[language-server.ruff-lsp]
command = "ruff-lsp"
[[language]]
name = "python"
language-servers = [ "ruff-lsp" ]
language-servers = [ "ruff-lsp", "pylsp" ]
# In case you'd like to use ruff alongside black for code formatting:
formatter = { command = "black", args = ["--quiet", "-"] }