|
@@ -88,11 +88,12 @@ end
|
|
|
|
|
|
-- Smartly opens either git_files or find_files, depending on whether the working directory is
|
|
-- Smartly opens either git_files or find_files, depending on whether the working directory is
|
|
-- contained in a Git repo.
|
|
-- contained in a Git repo.
|
|
-function M.find_project_files()
|
|
|
|
- local ok = pcall(builtin.git_files)
|
|
|
|
|
|
+function M.find_project_files(opts)
|
|
|
|
+ opts = opts or {}
|
|
|
|
+ local ok = pcall(builtin.git_files, opts)
|
|
|
|
|
|
if not ok then
|
|
if not ok then
|
|
- builtin.find_files()
|
|
|
|
|
|
+ builtin.find_files(opts)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|