diff --git a/lua/telescope/_extensions/repo/list.lua b/lua/telescope/_extensions/repo/list.lua index ee73a2c..efd46ca 100644 --- a/lua/telescope/_extensions/repo/list.lua +++ b/lua/telescope/_extensions/repo/list.lua @@ -17,7 +17,7 @@ M.prepare_command = function(opts) -- Don’t filter only on directories with fd as git worktrees actually have a -- .git file in them. - local find_repo_opts = { "--hidden", "--no-ignore-vcs", "--case-sensitive", "--absolute-path" } + local find_repo_opts = { "--prune", "--hidden", "--no-ignore-vcs", "--case-sensitive", "--absolute-path" } local find_user_opts = opts.fd_opts or {} local find_exec_opts = opts.fd_exec_opts or (function() if vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1 then