Skip to content
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

Migrate LSP server for Rust: rls to rust-analyzer #1126

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

t-sin
Copy link
Contributor

@t-sin t-sin commented Oct 3, 2023

STATUS: now testing

I saw some delay in using it, so I think it's needed to more testing. So don't merge this PR now.

@rdaum
Copy link

rdaum commented Aug 9, 2024

Is there any update on this? I keep looking at lem but not switching to it because of lack of good support for Rust LSP development flow.

I don't know enough about lem's internals to know if I could just cherry-pick this in?

@rafaelsamenezes
Copy link

Is there any update on this? I keep looking at lem but not switching to it because of lack of good support for Rust LSP development flow.

I don't know enough about lem's internals to know if I could just cherry-pick this in?

You can get the same results of this PR with your init file ($HOME/.config/lem/init.lisp). Just add:

(lem-lsp-mode/lsp-mode::define-language-spec
    (rust-spec lem-rust-mode:rust-mode)
  :language-id "rust"
  :root-uri-patterns '("Cargo.toml")
  :command '("rust-analyzer")
  :install-command "rustup component add rust-analyzer"
  :readme-url "https://github.com/rust-lang/rust-analyzer"
  :connection-mode :stdio)

More info at: https://lem-project.github.io/usage/LSP/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants