diff --git a/runtime/lua/vim/pack/health.lua b/runtime/lua/vim/pack/health.lua index c2bc88afcb..1590530fba 100644 --- a/runtime/lua/vim/pack/health.lua +++ b/runtime/lua/vim/pack/health.lua @@ -128,7 +128,10 @@ local function check_plugin_lock_data(plug_name, lock_data) ('Plugin %s is not at expected revision\n'):format(name_str) .. ('Expected: %s\nActual: %s\n'):format(lock_data.rev, head) .. 'To synchronize, restart Nvim and run ' - .. ('`vim.pack.update({ %s }, { offline = true })`'):format(name_str) + .. ('`vim.pack.update({ %s }, { offline = true })`\n'):format(name_str) + .. 'If there are no updates, delete `rev` lockfile entry (do not create trailing comma) ' + .. 'and restart Nvim to regenerate lockfile data\n' + .. 'This can happen after updating plugins with read-only `$XDG_CONFIG_HOME`' ) return false end