-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider using ruff-lsp instead of pylsp as the default language server for Python #5399
Comments
Never heard about ruff before, cool! |
It's not yet time to switch to ruff-lsp: it lacks basic features (such as "goto definition") and is meant to be used alongside another LSP. Also, pylsp recently gained support for ruff via a plugin. |
To me, pyright is the obvious choice given that it's the default in VSCode. It's also the default in nvim-lspconfig: https://github.com/neovim/nvim-lspconfig#quickstart |
Adding alternate language server configs to the language server installation wiki seems like an easy win for this: https://github.com/helix-editor/helix/wiki/How-to-install-the-default-language-servers For a similar case there's a deno config mentioned even though typescript-language-server is the default for JS/TS languages |
Excellent! I just did it.
I'll add some instructions on how to use python-lsp/python-lsp-ruff as well soon. |
It's my view that ruff-lsp can provide a nicer user experience than pylsp mostly because ruff is very fast (written in Rust), so why not switch to it by default? Configuration for Helix is available here.
The text was updated successfully, but these errors were encountered: