mirror of https://github.com/folke/lazy.nvim.git
fix(cache): de-duplicate topmods. Fixes #349
This commit is contained in:
parent
70e5e08dc1
commit
81017b99e7
|
@ -246,8 +246,10 @@ function M._index(path)
|
||||||
if not vim.tbl_contains(M.topmods[topname], path) then
|
if not vim.tbl_contains(M.topmods[topname], path) then
|
||||||
table.insert(M.topmods[topname], path)
|
table.insert(M.topmods[topname], path)
|
||||||
end
|
end
|
||||||
|
if not vim.tbl_contains(M.indexed[path], topname) then
|
||||||
table.insert(M.indexed[path], topname)
|
table.insert(M.indexed[path], topname)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue