diff options
Diffstat (limited to 'lua/lvim')
| -rw-r--r-- | lua/lvim/core/telescope.lua | 3 | ||||
| -rw-r--r-- | lua/lvim/core/telescope/custom-finders.lua | 7 | 
2 files changed, 7 insertions, 3 deletions
| diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua index f556913b..a743bfa4 100644 --- a/lua/lvim/core/telescope.lua +++ b/lua/lvim/core/telescope.lua @@ -79,6 +79,9 @@ function M.config()          --@usage don't include the filename in the search results          only_sort_text = true,        }, +      git_files = { +        show_untracked = true, +      },      },      extensions = {        fzf = { 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 | 
