Note

This post is a thought. It's a short note that I make about someone else's content online. Learn more about the process thoughts

Here's my thought on 馃挱 configuring pylsp 路 helix-editor/helix 路 Discussion #6623


How to set your python formatter to black with helix. The following snippet lays out how to set the helix editor to auto-format on save with the black formatter.


[[language]]
name = "python"
language-servers = ["pylsp"]

[language-server.pylsp.config.pylsp]
plugins.pyls_mypy.enabled = true
plugins.pyls_mypy.live_mode = true
plugins.flake8.maxLineLength = 88
plugins.pycodestyle.maxLineLength = 88

[language.formatter]
command = "black"
args = ["--line-length", "88", "--quiet", "-"]

This post was a thought by Waylon Walker see all my thoughts at https://waylonwalker.com/thoughts