github nix-community/nixd 2.3.0

latest releases: 2.4.0, 2.3.2, 2.3.1...
3 months ago

What's Changed

This release prioritizes enhancing the functionality of 'select' expressions within the Nix language. For instance, improvements have been made to lib.mkDefault, pkgs.nixd, and similar components.

Unlike previous configuration-based approach in nixd 1.0, these features will work out of box for you.

New Features

  • nixd: lib + pkgs completion with "select", e.g. lib.gen|, pkgs.stdenv.mkDerivat| by @inclyc in #544

Screenshot_20240716_182427

  • nixd/Controller: support select in nested with expression by @inclyc in #546
with pkgs; [ nixd.over| ]

Enables auto-completion for variables that comes from with expression and "select" into nested attrs.

e.g.

image
  • nixd/Controller: support "goto definition" for select expressions by @inclyc in #549

Add "goto definition" support for select expressions, e.g.

with pkgs; [
  nixVersions.nix
#              ^
]
pkgs.stdenv.mkDerivation
#            ^

These values are now "Ctrl + Click"-able to nixpkgs locations.

Bug Fixes

  • nixd: don't pass NIX_PATH to nixd-attrset-eval unit tests by @inclyc in #542
  • nixd/Controller: fix crashing on empty selector idiom in completion by @inclyc in #553

Other Changes

  • libnixf: generate diagnostic declarations from python by @inclyc in #548
  • nixd/Eval: basic support for value metadata by @inclyc in #545
  • nixd/test/completion: precommit pkgs failing test by @inclyc in #550

Packagers' Note

Please add python312 as nativeBuildInputs.

Full Changelog: 2.2.3...2.3.0

Don't miss a new nixd release

NewReleases is sending notifications on new releases.