GithubHelp home page GithubHelp logo

ntbbloodbath / nvenv Goto Github PK

View Code? Open in Web Editor NEW
51.0 3.0 4.0 51 KB

A lightweight and blazing fast Neovim version manager.

License: MIT License

Makefile 5.37% V 92.95% AMPL 1.69%
neovim version-manager vlang

nvenv's Introduction

Nvenv

License Latest Release GitHub Workflow Status (branch)

FeaturesInstallUsageBuildingContribute


Nvenv is a lightweight and blazing fast Neovim version manager, made using Vlang.

Features

  • Extremely lightweight (~300kB)
  • Blazing fast execution time (<1s execution time)
  • No heavy dependencies

Install

Supported OS:

  1. Linux

  2. MacOS (Untested, if you found issues please report them!)

Dependencies

  • jq
  • tar
  • curl

Usage

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.

Example

# 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.


Building

Dependencies

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

Contribute

  1. Fork it (https://github.com/NTBBloodbath/nvenv/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

NOTE: Before commit your changes, format the code by running make fmt.

License

nvenv is MIT Licensed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.