Prepend the extras module prefix if it's not already using that

This commit is contained in:
Tony Messias 2025-04-12 20:39:31 -03:00
parent ec5981dfb1
commit afc30c08ba
No known key found for this signature in database
GPG key ID: F7430044F240315C

View file

@ -62,8 +62,9 @@ function M.migrate()
---@diagnostic disable-next-line: no-unknown ---@diagnostic disable-next-line: no-unknown
json.data.hashes = nil json.data.hashes = nil
end end
-- prepend the extras module prefix if it's not yet using that
json.data.extras = vim.tbl_map(function(extra) json.data.extras = vim.tbl_map(function(extra)
return "lazyvim.plugins.extras." .. extra return extra:match("^lazyvim%.plugins%.extras%.") and extra or "lazyvim.plugins.extras." .. extra
end, json.data.extras or {}) end, json.data.extras or {})
elseif json.data.version == 1 then elseif json.data.version == 1 then
json.data.extras = vim.tbl_map(function(extra) json.data.extras = vim.tbl_map(function(extra)