tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.38k stars 89 forks source link

Allow nls to goto definitions in the stdlib #1557

Open jneem opened 1 year ago

jneem commented 1 year ago

The nickel stdlib is embedded into the nickel library, meaning that if someone asks nls to go to a definition in the stdlib, there is no file to point them to.

We should allow going to definitions in the stdlib, possibly by having nls write out the stdlib contents to a temporary location.

jneem commented 1 year ago

One possibility is to provide an API in nickel that allows for providing a standard library at a given path. Then nls ships with a copy of the standard library (installed to the filesystem) and points nickel at it.