You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the FAQ and my bug is not listed there.
Description
I use zig and zls (0.13.0) on my system, but for some reason I have projects developed in zig (0.14.0) which is managed in flake.nix, but zls (0.13.0) is always loaded instead of zls (0.14.0).
Note that neither --suffix or --prefix are “better” for adding to the PATH, rather it is situational and/or subjective which to use.
Nixvim abruptly switching from prefix to suffix would be a potentially disruptive breaking change, as many users will be expecting the executables installed by nixvim to take priority in vim's PATH.
In general, allowing the impure environment to take priority on the PATH sounds like a bad idea, although for LSPs it is often what is desired.
Up until now, we have advised setting the relevant package option to null when you want to use the impure executable from the environment's PATH. However I can see a use case for specific packages to be installed as fallbacks.
I think we need to do a bit of head scratching, and come up with a way to define both overrides (prefix) and fallbacks (suffix).
lsp
24.11
24.11
master
Description
I use zig and zls (0.13.0) on my system, but for some reason I have projects developed in zig (0.14.0) which is managed in flake.nix, but zls (0.13.0) is always loaded instead of zls (0.14.0).
Minimal, Reproducible Example (MRE)
project flake.nix
project flake.lock
Additional Informations
zls-0.13.0 comes first, echo $PATH in neovim:
The text was updated successfully, but these errors were encountered: