Replies: 1 comment 3 replies
-
Black formatter can be integrated to pylsp itself. Here is my configuration languages.toml [language-server.pylsp.config.pylsp]
plugins.black.enabled = true
plugins.pylint.enabled = true
plugins.pyflakes.enabled = false
plugins.pyls_mypy.enabled = true
plugins.pyls_mypy.live_mode = false
plugins.isort.enabled = true
plugins.rope_autoimport.enabled = true And requirements.txt to install everything needed:
Update Dec 11 2023: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I try to configure the Python LSP for Helix. The LSP itself is running. But I want to add the black formatter plugin, but it doesn't work automatically.
I created a venv and activated it. Then I installed pylsp with pip. If I open a file in Helix the LSP is working. I installed the black lsp plugin and I can run black manually. But I don't know how to run it automatically inside Helix, e.g. if I save a file, and reload the new version.
How can I set this up?
Edit: found the answer
https://github.com/helix-editor/helix/wiki/External-binary-formatter-configuration#black
Beta Was this translation helpful? Give feedback.
All reactions