diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index 4cf01b5..3f30ff2 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -246,7 +246,9 @@ function M._index(path) if not vim.tbl_contains(M.topmods[topname], path) then table.insert(M.topmods[topname], path) end - table.insert(M.indexed[path], topname) + if not vim.tbl_contains(M.indexed[path], topname) then + table.insert(M.indexed[path], topname) + end end end) return true