Open srghma opened 1 year ago
nixd actually evaluates the code, which makes it very flexible for a wide variety of projects you can do with nix, but makes it pretty configuration heavy, since you need to teach it how to evaluate your project.
nil on the other hand is very configuration-light, working perfectly out of the box most of the time, but when your project uses e.g. home-manger won't give you any option completion for that.
Both projects are independently useful, I usually use nil because I can't be bothered to configure nixd for every little project, but I can imagine myself configuring nixd for a specific project at some point in the future to get more specific diagnostics.
https://github.com/oxalica/nil/blob/main/docs/features.md#cli-features
nixd doesn't support anything like this, it's purely a language server, but you can get the same result with a clever nix eval
so you don't really need explicit support for it from nixd.
I'm not sure this should be added to the readme, most of this info is pretty easy to get if you just read both projects' readmes with a bit of background knowledge, or just try them out. Pretty standard for evaluating tools really.
It's also not really nil's job to document nixd, and any such documentation will just drift as nixd changes, without being able to be reflected in nil's readme without making commits just to update the readme (which really is just an unnecessary maintenance burden for nil).
hi, i'm new here
they both provide language server for nix
TODO: add this info into readme?