Nix (language): Difference between revisions

imported>Charlycoste
m typo
imported>Willbush
Line 383: Line 383:
=== Finding a (function/package/…) definition ===
=== Finding a (function/package/…) definition ===


Nix is often criticized that it has no working “jump to definition”. The good news is that you can something very similar by using a regular expression:
Nix is often criticized that it has no working “jump to definition”. The good news is that you can have something very similar by using a regular expression:


If your package is named <code>hello</code>, searching for the regular expression <code>hello\ =</code> lists all nix symbol definitions that are named this way. In many cases there’s only two or three results. You should find what you are searching for easily.
If your package is named <code>hello</code>, searching for the regular expression <code>hello\ =</code> lists all nix symbol definitions that are named this way. In many cases there’s only two or three results. You should find what you are searching for easily.