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

add rust language server to flake #144

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

TheConcierge
Copy link
Contributor

@TheConcierge TheConcierge commented Jun 25, 2024

Why

For nix-based workflow, we often install language servers within the project we are working on. By including the language server here, someone using nix would have all the tooling they need just using the included flake. Additionally, it helps keep the LSP version in sync with the version of rust in the flake.

Validation

I'm using the Helix text editor to detect the presence of the rust-analyzer LSP. It does this by simply checking that rust-analyzer is in the current path.

I also validated that the LSP works by opening one of the example files.

Using old flake

image

Using new flake

image

flake.nix Show resolved Hide resolved
@TheConcierge TheConcierge merged commit 9300e91 into main Jun 25, 2024
11 checks passed
@TheConcierge TheConcierge deleted the ngrok/ryan/rust-analyzer-flake branch June 25, 2024 18:54
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