-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to use plugins.lean.leanPackage
only as a fallback
#2893
Comments
Alternative solution for the problem is that, whenever a lean project development environment is being set-up (via e.g. flakes), than nixvim should also be configured for the development environment, in which case one can set |
This is an interesting proposition. |
I think we just need this, but with nixvim/modules/top-level/output.nix Line 344 in c7a600c
Iirc nixvim uses unwrapped neovim, and extraPackages is implemented in nixvim's wrapper. |
Hm, maybe we should have two extraPackages options, one for |
lean4
package doesn't work with lake projects configured withelan
. So to work with these one has to setplugins.lean.leanPackage = null
. But with this setting LSP will break on stand-alone files. I think that the ideal solution to have best of the two worlds is to use lean4 binaries found on PATH when available, and use binaries packaged with nixvim only if it's not. I believe, this behaviour should even be the default.As for implementation, I think that appending packages bin PATH to neovim PATH should work. I'm guessing current implementation prepends
extraPackages
to PATH.Additionally, I think that, the same issue applies to not only lean but probably many other LSPs. As such, it would be nice to have nixvim option like
extraPackagesAppend
orextraPackagesFallback
, that will append the packages bin path to neovim PATH.The text was updated successfully, but these errors were encountered: