nvim_runtime_lua

vim.pack.Spec

Fields4

Spec.src : string

URI from which to install and pull updates. Any format supported by git clone is allowed.

Spec.name : nil | string

Name of plugin. Will be used as directory name. Default: src repository name.

Spec.version : string | vim.VersionRange | nil

Version to use for install and updates. Can be:

  • nil (no value, default) to use repository's default branch (usually main or master).
  • String to use specific branch, tag, or commit hash.
  • Output of |vim.version.range()| to install the greatest/last semver tag
  • inside the version constraint.

Spec.data : any

Arbitrary data associated with a plugin.