oxalica / nil

NIx Language server, an incremental analysis assistant for writing in Nix.
Apache License 2.0
1.32k stars 39 forks source link

Type inference for flake inputs #54

Closed figsoda closed 1 year ago

figsoda commented 1 year ago
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  };

  outputs = { self, nixpkgs }: {

  };
}

for a flake like this, it would be nice to get completions and types for self and nixpkgs Here is a list of attributes copied from docs: outPath, rev, revCount, lastModifiedDate, lastModified, narHash

oxalica commented 1 year ago

The flake inputs recognition is working in progress. I'll hopefully got it implemented in the next week, after the Lunar New Year holiday.

oxalica commented 1 year ago

Ref: #76