shot of post - πŸ’­ help on setting up ruff formatter + ruff + pyright please : r/...

Here's my thought on πŸ’­ help on setting up ruff formatter + ruff + pyright please : r/...


This post shows how to set up multiple LSP's in helix, the example uses pyright and ruff-lsp for python.

Add this to your ~/.config/helix/languages.toml a

[[language]]
name = "python"
auto-format = true
language-servers = [
    {name = "pyright"},
    {name = "ruff-lsp"},
]

[language-server.pyright] command = "pyright-langserver" args = ["--stdio"] config = {}

[language-server.ruff-lsp] command = "ruff-lsp" args = [] config = {}


!!! 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 ]]

{.text-opacity-80} This post was a thought by Waylon Walker see all my thoughts at https://waylonwalker.com/thoughts