Use unstable rust-analyzer
Fixes proc-macro version mismatch
This commit is contained in:
12
config.nix
12
config.nix
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user