From 20180c2045dafd2c3edd957245d80bb6e530374c Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Thu, 8 Aug 2024 09:11:06 -0400 Subject: [PATCH] fix rust-analyzer, updates --- nix/home-manager/modules/packages/neovim.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nix/home-manager/modules/packages/neovim.nix b/nix/home-manager/modules/packages/neovim.nix index ea5b5e1..0bea736 100644 --- a/nix/home-manager/modules/packages/neovim.nix +++ b/nix/home-manager/modules/packages/neovim.nix @@ -71,7 +71,15 @@ jsonls.enable = true; pyright.enable = true; # In preference to attempting to use pylyzer nil-ls.enable = true; - rust-analyzer.enable = true; #TODO + rust-analyzer = let + fenix = fenix.latest.withComponents ["cargo" "rustc"]; + in { + enable = true; + installCargo = false; + installRustc = false; + cargoPackage = fenix.cargo; + rustcPackage = fenix.rustc; + }; taplo.enable = true; terraformls.enable = true; };