From c2cbe2b1390c7232979a3b3641cbd8fb3a2e54c2 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 21 Nov 2024 23:12:19 +0100 Subject: [PATCH] add rust-analyzer --- modules/rust.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/rust.nix b/modules/rust.nix index d4b3876..18ba54b 100644 --- a/modules/rust.nix +++ b/modules/rust.nix @@ -1,8 +1,21 @@ +# We use the unofficial overlay oxalica/rust-overlay +# https://nixos.wiki/wiki/Rust#Unofficial_overlays + +# Example for oxalica/rust-overlay +# https://nixos.wiki/wiki/Rust#Custom_Rust_version + +# rust-analyzer +# https://rust-analyzer.github.io/ +# rust-analyzer is an implementation of Language Server Protocol for the Rust programming language. It provides features like completion and goto definition for many code editors, including VS Code, Emacs and Vim. + { config, pkgs, ... }: let #rustVersion = pkgs.rust-bin.stable."1.81.0".default.override { rustVersion = pkgs.rust-bin.stable.latest.default.override { - extensions = [ "rust-src" ]; + extensions = [ + "rust-src" + "rust-analyzer" + ]; #targets = [ # "x86_64-unknown-linux-musl" # #"arm-unknown-linux-gnueabihf"