mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix: remove duplicate entries (#99)
Co-authored-by: Munif Tanjim <hello@muniftanjim.dev>
This commit is contained in:
parent
3ddaaa0a60
commit
62d3381a32
@ -81,7 +81,19 @@ util.buf_is_loaded = function(filename)
|
|||||||
end
|
end
|
||||||
|
|
||||||
util.include_unindexed = function(files, ws_path)
|
util.include_unindexed = function(files, ws_path)
|
||||||
local scan_opts = { respect_gitignore = true, depth = 100, hidden = true }
|
local is_indexed = {}
|
||||||
|
for _, item in ipairs(files) do
|
||||||
|
is_indexed[item.path] = true
|
||||||
|
end
|
||||||
|
|
||||||
|
local scan_opts = {
|
||||||
|
respect_gitignore = true,
|
||||||
|
depth = 100,
|
||||||
|
hidden = true,
|
||||||
|
search_pattern = function(file)
|
||||||
|
return not is_indexed[file]
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
-- TODO: make sure scandir unindexed have opts.ignore_patterns applied
|
-- TODO: make sure scandir unindexed have opts.ignore_patterns applied
|
||||||
-- TODO: make filters handle mulitple directories
|
-- TODO: make filters handle mulitple directories
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user