oxalica / nil

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

Haumea integration #82

Closed figsoda closed 1 year ago

figsoda commented 1 year ago

https://github.com/oxalica/nil/commit/5b99f7aab5d2ed11ddd83fbd882a26196d96886a added completions for NixOS Options, it would be nice if this feature would work with NixOS modules loaded with haumea

Some notable differences are:

This can be discovered if the module is a lambda that calls haumea.lib.load, and the files would be relative to src: https://github.com/figsoda/cfg/blob/5d10ef36cefb3b36eb529df5a34f106c2cb4965d/flake.nix#L27

oxalica commented 1 year ago

Not a fan of supporting any custom library APIs, unless they are somehow endorsed by upstream (NixOS/nix or NixOS/rfcs). There are too many libraries.

figsoda commented 1 year ago

guess I'll wait for cross file analysis and more eval