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

This commit is contained in:
Iordanis Petkakis authored and GitHub committed 2024-03-20 17:25:39 +01:00
1 parent 642bcf168b
commit 1661759d33
1 file changed
+3 -1
+3 -1
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"