fix(util.telescope): make show_untracked configurable (#2789)

This commit is contained in:
Iordanis Petkakis
2024-03-20 18:25:39 +02:00
committed by GitHub
parent 642bcf168b
commit 1661759d33

View File

@ -29,7 +29,9 @@ function M.telescope(builtin, opts)
and not vim.loop.fs_stat((opts.cwd or vim.loop.cwd()) .. "/.ignore")
and not vim.loop.fs_stat((opts.cwd or vim.loop.cwd()) .. "/.rgignore")
then
opts.show_untracked = true
if opts.show_untracked == nil then
opts.show_untracked = true
end
builtin = "git_files"
else
builtin = "find_files"