summaryrefslogtreecommitdiff
path: root/lua/lvim/core/telescope/custom-finders.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-10-17 17:29:15 +0200
committerkylo252 <[email protected]>2022-10-17 17:29:15 +0200
commit4ef07315003f723bb8e97d5a91b2bde3773ec1b8 (patch)
treee9889a492f76e3f9573228343aaba647dfd48136 /lua/lvim/core/telescope/custom-finders.lua
parente4a5fe97abe500bbbe78fb137d57a59f558da05a (diff)
parent6f6cbc394d2a7e64964b6067a2f42d2e6a07824e (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/core/telescope/custom-finders.lua')
-rw-r--r--lua/lvim/core/telescope/custom-finders.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/lvim/core/telescope/custom-finders.lua b/lua/lvim/core/telescope/custom-finders.lua
index 69428a44..9ab06326 100644
--- a/lua/lvim/core/telescope/custom-finders.lua
+++ b/lua/lvim/core/telescope/custom-finders.lua
@@ -88,11 +88,12 @@ end
-- Smartly opens either git_files or find_files, depending on whether the working directory is
-- 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
- builtin.find_files()
+ builtin.find_files(opts)
end
end