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