Nuwa.nvim

Installing Nuwa

Installing Nuwa is straightforward, but it does require the command to be installed and available from the command line. First, you must build the path, Nuwa itself should be loaded from. Once this is done, the Nuwa repository itself has to be cloned into that path, which we just set into the nuwaPath variable. The repository features a long code snippet to do so. Finally, the nuwaPath has to be added to Neovim's runtime path, so Neovim knows where to load Nuwa from.

Usage of Nuwa

Nuwa takes an approach to plugins that requires using its functions to do tasks inside your configuration. The list below illustrates how to use a loaded instance of Nuwa:

  • installPackage: This function installs a plugin from git repository and takes three arguments. The first argument is the URL of the Git provider, the second is the owner's handle on that Git provider, and the third is the name of the plugin's repository.
  • installLocal: Nuwa also allows you to install local packages and takes one argument. This argument is the absolute path of the plugin on disk.
  • Updating a plugin: Every plugin is updated as soon as neovim is entered. Nuwa does this automatically for you.
  • Removing a plugin: Nuwa offers the NuwaDelete command. This command takes the full name of the plugin to be deleted as an argument. This name should also include the .nvim extension, if present.