feat(pack): 'packlockfile' option #40562

Problem: No way to configure the lockfile location.

Solution: Add 'packlockfile' option.
This commit is contained in:
Evgeni Chasnovski
2026-07-08 19:23:28 +03:00
committed by GitHub
parent ef130902cf
commit 0653e7a338
10 changed files with 160 additions and 21 deletions

View File

@@ -6418,6 +6418,22 @@ local options = {
type = 'string',
varname = 'p_opfunc',
},
{
abbreviation = 'plf',
defaults = '$XDG_CONFIG_HOME/nvim/nvim-pack-lock.json',
deny_duplicates = true,
desc = [=[
Path of |vim.pack-lockfile|. Must be set before the first usage of any
|vim.pack| function. Environment variables are expanded |:set_env|.
]=],
expand = true,
full_name = 'packlockfile',
scope = { 'global' },
secure = true,
short_desc = N_('path of vim.pack lockfile'),
type = 'string',
varname = 'p_plf',
},
{
abbreviation = 'pp',
cb = 'did_set_runtimepackpath',