Skip to content

Autocomplete breaks in NixOS module with explicit config section #566

Closed
@arianvp

Description

@arianvp

Describe the bug

If I have a config like:

{ lib, pkgs, config, ...}:
{
  systemd.se<TAB>
}

autocomplete works

However if I have a config like:

{ lib, pkgs, config, ... }: {
  config = {
    systemd.s<TAB>
  };
}

auto complete does not work

However it does work when I have

{ lib, pkgs, config, ... }: {
  config = lib.mkIf true {
    systemd.se<TAB>
  };
}

Logs (Required)

E[16:35:36.158] 22467: option worker reported: -32001: attrname config not found in attrset

Configuration

If you have some custom configuration, please paste it here.

To Reproduce
Steps to reproduce the behavior:

  1. Create a NixOS config like { config = {}; }

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Screen.Recording.2024-08-02.at.16.34.20.mov

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions