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
Describe the bug
A clear and concise description of what the bug is.
My default node version is set to v14 (which i need for my project), but Neovide is defaulting to v18 which I don't have installed.
When opening Nvim, it works fine. Also it works fine on vim.
To Reproduce
Steps to reproduce the behavior:
Use nvm use in a project that has .nvmrc with specific version
Open neovide
Check the version
Expected behavior
A clear and concise description of what you expected to happen.
I expect the node version used in the Neovide to match the node version I was using in the terminal
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. macOS 12.5]
Neovide Version [e.g. 0.9.0]
Neovim Version [e.g. 0.7.2]
The text was updated successfully, but these errors were encountered:
Thanks for reporting! If you use nvm according to https://github.com/nvm-sh/nvm#zsh, be aware that Neovide is not starting the embedded neovim instance not inside of a login shell, and as such zsh will not source ~/.zshrc. You could use ~/.zprofile instead. I think I'll add this to the website.
I am, in fact, using "Calling nvm use automatically in a directory with a .nvmrc file" code in my .zshrc
I tried moving the snippet to ~/.zprofile but it complains that it can't find add-zsh-hook in .zprofile because I believe the plugin has not loaded yet. (I also use zplug managing my plugins, which is loaded at the beginning of my .zshrc)
Is there an option for Neovide to source ~/.zshrc via a flag?
Just adding to the discussion here:
This seems to be a general issue that applies to multiple virtual dev environments (ruby, python, node). Currently I face the same issue with python which has a virtual env for every project and activating it is important for LSP. If I program in Python I have to go back to terminal nvim...
Having a solution rather than a workaround with e.g. .zprofile would be much appreciated
#1758 was merged which might be worth a look, you could build from git main and test. Doesn't fix the situation with Neovide being launched from Finder though.
Describe the bug
A clear and concise description of what the bug is.
My default node version is set to v14 (which i need for my project), but Neovide is defaulting to v18 which I don't have installed.
When opening Nvim, it works fine. Also it works fine on vim.
To Reproduce
Steps to reproduce the behavior:
nvm use
in a project that has.nvmrc
with specific versionExpected behavior
A clear and concise description of what you expected to happen.
I expect the node version used in the Neovide to match the node version I was using in the terminal
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: