Installing Nuwa
Installing Nuwa is straightforward, but it does require the git command to be installed and available from the command line. The installation process is simple and requires you to clone Nuwa to your system. This can be done manually or via Lua. For Nuwa to work, you must then add this directory to Neovim's runtime path. My own configuration uses Nuwa and can be found here. You can then require Nuwa in your configuration and use the returned instance of Nuwa to call the instance's functions to do tasks like installing or loading plugins. The possible tasks and how to carry them out are listed in the next section.
Usage of Nuwa
-
installPackage: This function installs a plugin from a 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 plugins 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
NuwaDeletecommand. This command takes the full name of the plugin to be deleted as an argument. This name should also include the.nvimextension, if present.