forked from foxora/nix
rust-analyzer had bug on master branch
This commit is contained in:
parent
a2475d22dc
commit
8a44655415
1 changed files with 3 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue