Nvenv is a lightweight and blazing fast Neovim version manager, made using Vlang.
- Extremely lightweight (~300kB)
- Blazing fast execution time (<1s execution time)
- No heavy dependencies
Supported OS:
Linux
MacOS (Untested, if you found issues please report them!)
- jq
- tar
- curl
Just run nvenv help and see the available commands or nvenv help [command] for help with a specific command.
❯ nvenv help
Usage: nvenv [commands]
A lightweight and blazing fast Neovim version manager
Commands:
setup Set up required files and directories, required at first usage.
ls List your installed versions.
list-remote List the available versions.
install Install a version.
uninstall Uninstall a version.
update-nightly Update Neovim Nightly version.
use Use a specific version.
clean Clean Nvenv cache files.
help Prints help information.
version Prints version information.
# First we need to setup nvenv to create its directories.
nvenv setup
# Then we install Neovim Nightly and latest stable (0.4.4).
# The first version downloaded will be used by default.
nvenv install nightly
nvenv install stable
# To switch to Neovim stable
nvenv use stable
NOTE: You need to add
$HOME/.local/bin
to your$PATH
!
export PATH=$HOME/.local/bin:$PATH
. In this way, the shell will prefer to use the version that is being used in Nvenv instead of the version installed on the system.
First, you need to download the Nvenv repository (I assume that you have already installed V).
git clone https://github.com/NTBBloodbath/nvenv
If you use GNU Make
then you can just run it for build
# Available platforms: linux, macos
make your_platform
Otherwise, you can compile it manually
v -prod nvenv.v
- Fork it (https://github.com/NTBBloodbath/nvenv/fork)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
NOTE: Before commit your changes, format the code by running
make fmt
.
nvenv is MIT Licensed.