fix(nvm): disable lazy-loading if autoload is set

Closes #11748
This commit is contained in:
Carlo Sala 2023-06-20 09:36:11 +02:00
commit b5be2d39e2
No known key found for this signature in database
GPG key ID: DA6FB450C1A4FE9A
2 changed files with 16 additions and 5 deletions

View file

@ -43,6 +43,9 @@ zstyle ':omz:plugins:nvm' lazy-cmd eslint prettier typescript ...
#### `.nvmrc` autoload
Note: _this option cannot be used at the same time as `lazy`. `autoload` will override it and load `nvm` at
startup._
If set, the plugin will automatically load a node version when if finds a
[`.nvmrc` file](https://github.com/nvm-sh/nvm#nvmrc) in the current working directory indicating which node
version to load. This can be done, similar as previous options, adding: