mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Prepend the extras module prefix if it's not already using that
This commit is contained in:
parent
ec5981dfb1
commit
afc30c08ba
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue