fix(pick): set recurse_submodules to false when using auto picker. Fixes #3831, Closes #3835

This commit is contained in:
Folke Lemaitre 2024-06-29 10:33:26 +02:00
parent 88f25410e0
commit d6429a5c8a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -80,7 +80,10 @@ function M.open(command, opts)
and not vim.uv.fs_stat(cwd .. "/.rgignore")
then
command = "git_files"
opts.show_untracked = opts.show_untracked ~= false
if opts.show_untracked == nil then
opts.show_untracked = true
opts.recurse_submodules = false
end
end
end
command = M.picker.commands[command] or command