Skip to content

2.3.0

Compare
Choose a tag to compare
@inclyc inclyc released this 26 Jul 01:43
· 36 commits to main since this release
2.3.0
4e9d406

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