-
-
Notifications
You must be signed in to change notification settings - Fork 891
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
Support ruff server
#4451
Comments
This is now available in beta: https://github.com/astral-sh/ruff/tree/main/crates/ruff_server#setup Here's the blogpost about it: https://astral.sh/blog/ruff-v0.4.5 |
A very basic version that seems to be working for me: (with-eval-after-load 'lsp-mode
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("ruff" "server" "--preview"))
:major-modes '(python-mode)
:priority 1
:add-on? t
:multi-root t
:server-id 'ruff-server)
)
)
(setq! lsp-disabled-clients '(python-mode . (ruff-lsp))) |
FWIW (as a Emacs elisp neophyte), this worked for me:
went to:
at the end of my |
I am not sure if What @indigoviolet wrote works, however even shorter is to modify (with-eval-after-load 'lsp-mode
(setq lsp-ruff-lsp-server-command '("ruff" "server"))) |
The server is now supported. Added in #4543. |
According to astral-sh/ruff#10158,
ruff server
is a re-implementation ofruff-lsp
in Rust and just by that property it is very probable thatruff-lsp
will be deprecated in near future. Would be nice to have alsp-mode
client forruff server
by that point.The text was updated successfully, but these errors were encountered: