这是indexloc提供的服务,不要输入任何密码
Skip to content

Option-completion in inlined modules? #103

@Ma27

Description

@Ma27

While a lot of modules are in their own files, it's also possible to inline them in e.g. a flake.nix:

{
  description = "foobar";
  outputs = { self, nixpkgs, ... }: {
    nixosModules.default = { lib, ... }: {
      services.|
    };
  };
}

Right now (as of 97abe7d) there's no completion for option-names at the |-symbol in the example above. A similar case can be observed when using imports or mkMerge:

{ lib, ... }: {
  imports = [
    ({ config, ... }: {
      # no completion in here
    })
  ];
}
{ lib, ... }: {
  services = lib.mkMerge [{
    # no completion in here
  }];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tyArea: type systemC-featureCatagory: feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions