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 ๐Ÿ’ญ help on setting up ruff formatter + ruff + pyright please : r/HelixEditor


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 = {}

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