nixvim
                                
                                 nixvim copied to clipboard
                                
                                    nixvim copied to clipboard
                            
                            
                            
                        [BUG] error: expected a set but found a list
| Field | Description | 
|---|---|
| Plugin | lsp | 
| Nixpkgs | unstable | 
| Home Manager | unstable | 
- [x] I have read the FAQ and my bug is not listed there.
Description
Error after doing nix flake update. Here's the error message
error:
       … while calling the 'head' builtin
         at /nix/store/m8869v1img6mqn1d52dyp75v4f3sf1qy-source/lib/attrsets.nix:1575:11:
         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else
       … while evaluating the attribute 'value'
         at /nix/store/m8869v1img6mqn1d52dyp75v4f3sf1qy-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;
       … while evaluating the option `system.build.toplevel':
       … while evaluating definitions from `/nix/store/m8869v1img6mqn1d52dyp75v4f3sf1qy-source/nixos/modules/system/activation/top-level.nix':
       … while evaluating the option `warnings':
       … while evaluating definitions from `/nix/store/m8869v1img6mqn1d52dyp75v4f3sf1qy-source/nixos/modules/system/boot/systemd.nix':
       … while evaluating the option `systemd.services.home-manager-airi.serviceConfig':
       … while evaluating definitions from `/nix/store/cx36lz9m7vv8qznmvxkzg2bs4hlgpqgf-source/src/transformers/nixosConfigurations.nix':
       … while evaluating the option `home-manager.users.airi.home.file.".manpath".source':
       … while evaluating definitions from `/nix/store/6nfmqa5gw9gs1wbxfw9p0qpk5apblb7g-source/modules/files.nix':
       … while evaluating the option `home-manager.users.airi.home.file.".manpath".text':
       … while evaluating definitions from `/nix/store/6nfmqa5gw9gs1wbxfw9p0qpk5apblb7g-source/modules/programs/man.nix':
       … while evaluating the option `home-manager.users.airi.programs.nixvim.content':
       … while evaluating definitions from `/nix/store/fg9vjx7bl5yj0slbwgw1rjghmlvvi83f-source/modules/output.nix':
       … while evaluating the option `home-manager.users.airi.programs.nixvim.extraConfigLua':
       … while evaluating definitions from `/nix/store/fg9vjx7bl5yj0slbwgw1rjghmlvvi83f-source/plugins/lsp':
       … while evaluating the option `home-manager.users.airi.programs.nixvim.plugins.lsp.servers.rust-analyzer.settings':
       (stack trace truncated; use '--show-trace' to show the full, detailed trace)
       error: expected a set but found a list: [ { properties = { "rust-analyzer.cargoRunner" = { type = [ "null" "string" ]; default = null; description = "Custom cargo runner extension ID."; }; "rust-analyzer.discoverProjectRunner" = { type = [ "null" "string" ]; default = null; markdownDescription = "Sets the extension responsible for determining which extension the rust-analyzer extension uses to generate `rust-project.json` files. This should should only be used\n if a build system like Buck or Bazel is also in use."; }; "rust-analyzer.restartServerOnConfigChange" = { type = "boolean"; default = false; «4294967289 attributes elided» }; «4294967292 attributes elided» }; «4294967286 attributes elided» } { «4294967286 attributes elided» } { «4294967286 attributes elided» } { «4294967286 attributes elided» } { «4294967286 attributes elided» } { «4294967286 attributes elided» } «154 items elided» ]
Minimal, Reproducible Example (MRE)
programs.nixvim = {
    plugins = {
      lsp = {
        enable = true;
        servers = {
          rust-analyzer = {
            enable = true;
            filetypes = [ "rs" ];
            installCargo = true;
            installRustc = true;
            settings = {
              diagnostics = {
                enable = true;
                # experimental.enable = true;
                styleLints.enable = true;
              };
              files = {
                excludeDirs = [
                  ".direnv"
                  "rust/.direnv"
                ];
              };
              inlayHints = {
                bindingModeHints.enable = true;
                closureStyle = "rust_analyzer";
                closureReturnTypeHints.enable = "always";
                discriminantHints.enable = "always";
                expressionAdjustmentHints.enable = "always";
                implicitDrops.enable = true;
                lifetimeElisionHints.enable = "always";
                rangeExclusiveHints.enable = true;
              };
              procMacro = {
                enable = true;
              };
            };
          };
        };
      };
    };
 };
}