diff options
author | Philipp Schmitt <[email protected]> | 2022-09-20 08:02:35 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-20 10:32:35 +0430 |
commit | 03ec31253fc868b3ab5a8217640ec04248ae0046 (patch) | |
tree | 3359ae30b3ff24b4e983bfcf779ec714e7f40dac /lua/lvim/core/telescope/custom-finders.lua | |
parent | f11909b5649f6169fe48b61a40def4924754c38e (diff) |
feat(telecope): set show_untracked by default (#2984)
* feat: optionally show untracked files with find_project_files
* feat(telecope): set show_untracked by default
Co-authored-by: kylo252 <[email protected]>
Diffstat (limited to 'lua/lvim/core/telescope/custom-finders.lua')
-rw-r--r-- | lua/lvim/core/telescope/custom-finders.lua | 7 |
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 |