From afc30c08ba2656805c7679b5e4659bfe973c3811 Mon Sep 17 00:00:00 2001 From: Tony Messias Date: Sat, 12 Apr 2025 20:39:31 -0300 Subject: [PATCH] Prepend the extras module prefix if it's not already using that --- lua/lazyvim/util/json.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/util/json.lua b/lua/lazyvim/util/json.lua index ad843687..e5aa4c6d 100644 --- a/lua/lazyvim/util/json.lua +++ b/lua/lazyvim/util/json.lua @@ -62,8 +62,9 @@ function M.migrate() ---@diagnostic disable-next-line: no-unknown json.data.hashes = nil end + -- prepend the extras module prefix if it's not yet using that 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 {}) elseif json.data.version == 1 then json.data.extras = vim.tbl_map(function(extra)