rust-analyzer had bug on master branch

This commit is contained in:
foxora 2026-05-03 12:23:11 +01:00
parent a2475d22dc
commit 8a44655415

View file

@ -2,7 +2,7 @@
# https://github.com/BirdeeHub/nix-wrapper-modules
{
inputs,
mpkgs,
upkgs,
...
}: let
inherit
@ -62,7 +62,7 @@ in {
docs = [nix-doc]; # TODO: i forgot how to integrate this into neovim
};
rust = {
lsp = [cargo mpkgs.rust-analyzer];
lsp = [cargo upkgs.rust-analyzer];
# nightly rustfmt has nicer features :3
format = [(rustfmt.override {asNightly = true;})];
formatters = {
@ -197,7 +197,7 @@ in {
rust.lsp = {
# it literally won't see the rust-analyzer provided to it
# if you don't use an envrionment variable to tell it
RUST_ANALYZER_CMD = "${mpkgs.rust-analyzer}/bin/rust-analyzer";
RUST_ANALYZER_CMD = "${upkgs.rust-analyzer}/bin/rust-analyzer";
};
elixir.lsp = {
ELIXIR_LS_CMD = "${pkgs.elixir-ls}/scripts/language_server.sh";