Use unstable rust-analyzer

Fixes proc-macro version mismatch
This commit is contained in:
2025-09-19 20:42:27 -04:00
parent b5e6c9a784
commit 1781b12fe0
2 changed files with 17 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, inputs, ... }:
{ pkgs, pkgs-unstable, inputs, ... }:
{
colorschemes.tokyonight.enable = true;
@@ -150,7 +150,15 @@
comment.enable = true;
sleuth.enable = true;
rustaceanvim.enable = true;
rustaceanvim = {
enable = true;
settings = {
server = {
cmd = [ "${pkgs-unstable.rust-analyzer}/bin/rust-analyzer" ];
};
};
};
mkdnflow = {
enable = true;

View File

@@ -1,6 +1,7 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
@@ -20,13 +21,17 @@
};
};
outputs = { self, nixpkgs, flake-utils, nixvim, ... }@inputs:
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils, nixvim, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
};
nixvimLib = nixvim.lib.${system};
nixvimModule = import ./config.nix;
@@ -34,7 +39,7 @@
nvim = nixvim.legacyPackages.${system}.makeNixvimWithModule {
module = nixvimModule;
extraSpecialArgs = {
inherit inputs;
inherit inputs pkgs-unstable;
};
};
in