perf(plugins): move assert vim.env.LVIM_DEV_MODE logic (#3238)

This commit is contained in:
2nthony 2022-10-15 20:06:52 +08:00 committed by GitHub
parent a54312b769
commit e94390a922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,8 +297,8 @@ local get_default_sha1 = function(spec)
return default_sha1[short_name] and default_sha1[short_name].commit
end
for _, spec in ipairs(core_plugins) do
if not vim.env.LVIM_DEV_MODE then
if not vim.env.LVIM_DEV_MODE then
for _, spec in ipairs(core_plugins) do
-- Manually lock the commit hash since Packer's snapshots are unreliable in headless mode
spec["commit"] = get_default_sha1(spec)
end