Dark mode switch icon Light mode switch icon

The new native package manager in Neovim

1 min read

Neovim has introduced native package manager function and is available in the nightly builds(https://github.com/neovim/neovim/pull/34009).

To install packages, you just need to add the github links of the packages as below.

vim.pack.add({
  ...
	{ src = "[github.link]" },
  ...
})

Run restart to install packages that were added in the vim.pack.add() block. To update the packages, just run lua vim.pack.update(). This call is interactive so you will need to manually run :write to commit the change.

The documentation sits at https://neovim.io/doc/user/pack.html#_plugin-manager right now.

The offline documentation can be accessed by running help vim.pack.

The native package manager is a good move over the older bloat of package manager and makes configuration much lighter.

Originally published on by Rakshith Bellare