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,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
|
||||
|
|
Loading…
Reference in New Issue