nix-community / nixvim

Configure Neovim with Nix! [maintainers=@GaetanLepage, @traxys, @mattsturgeon, @khaneliman]
https://nix-community.github.io/nixvim
MIT License
1.72k stars 264 forks source link

[BUG] missing transparent-nvim after updating flake.lock #1278

Closed pact0 closed 7 months ago

pact0 commented 7 months ago
Field Description
Plugin nixvim
Nixpkgs unstable
Home Manager unstable

Description

Hello, I have my nixvim installed like so

nixvim = {
      url = "github:nix-community/nixvim";
      inputs.nixpkgs.follows = "nixpkgs";
    };

and then imported in home manager

  imports = [
    inputs.nixvim.homeManagerModules.nixvim
  ];

When I try to run nix flake lock --update-input nixvim I start getting errors which end with something like this

       … while evaluating the attribute 'value'

         at /nix/store/bjvqq8c79dbi59g7xzcc6lhl0f19m3d7-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'transparent-nvim' missing

       at /nix/store/vwlqf5kxxw6cwaqbw7vd1vqf4skvjfb6-source/plugins/ui/transparent.nix:12:22:

           11|     originalName = "transparent.nvim";
           12|     defaultPackage = pkgs.vimPlugins.transparent-nvim;
             |                      ^
           13

Minimal, Reproducible Example (MRE)

Run nix flake lock --update-input nixvim and then nixos-rebuild switch --flake .

GaetanLepage commented 7 months ago

Could you try updating all the flake inputs, not just nixvim ? (especially nixpkgs).

pact0 commented 7 months ago

Hey, I tried running nix flake update and then nixos-rebuild switch --flake a couple days ago but the outcome was the same. I ran nix-channel --update , nix flake update and then nixos-rebuild switch --flake just now and I only got a warning

The option `colorschemes.base16.customColorScheme' defined in `/nix/store/w48ijyc7k5g1h9yyz0x8ar655avpb8wp-modules/nixvim/hm.nix' has been renamed to `colorschemes.base16.colorscheme'.

which might be due to me using stylix, so I guess it somehow fixed itself.

GaetanLepage commented 7 months ago

which might be due to me using stylix, so I guess it somehow fixed itself.

This is due to a change we have made to the base16 module. You should simply rename this option in your config as the message suggest. Glad that everything works now :)

pact0 commented 7 months ago

Thanks!