helix/languages.toml aktualisiert
Add pylsp, since ruff does not replace this part
This commit is contained in:
parent
5cae7e17e7
commit
4c5213a194
|
|
@ -7,17 +7,18 @@
|
||||||
|
|
||||||
# Python3-LSP:
|
# 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:
|
# in CMK:
|
||||||
# cd ~/local/bin
|
# cd ~/local/bin
|
||||||
# ln -s ~/local/lib/python3/bin/ruff* .
|
# ln -s ~/local/lib/python3/bin/ruff* .
|
||||||
|
# ln -s ~/local/bin/pylsp .
|
||||||
#
|
#
|
||||||
# This combo also notifies on unused vars etc.
|
# This combo also notifies on unused vars etc.
|
||||||
[language-server.ruff-lsp]
|
[language-server.ruff-lsp]
|
||||||
command = "ruff-lsp"
|
command = "ruff-lsp"
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "python"
|
name = "python"
|
||||||
language-servers = [ "ruff-lsp" ]
|
language-servers = [ "ruff-lsp", "pylsp" ]
|
||||||
|
|
||||||
# In case you'd like to use ruff alongside black for code formatting:
|
# In case you'd like to use ruff alongside black for code formatting:
|
||||||
formatter = { command = "black", args = ["--quiet", "-"] }
|
formatter = { command = "black", args = ["--quiet", "-"] }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue