break(git_files): change show_untracked default to false (#842)

This commit is contained in:
Ben Smith
2022-05-18 18:27:06 +00:00
committed by Simon Hauser
parent b98b9a93c6
commit 440684edad
3 changed files with 3 additions and 3 deletions

View File

@@ -977,7 +977,7 @@ builtin.git_files({opts}) *telescope.builtin.git_files()*
(default: true)
{show_untracked} (boolean) if true, adds `--others` flag to
command and shows untracked files
(default: true)
(default: false)
{recurse_submodules} (boolean) if true, adds the
`--recurse-submodules` flag to command
(default: false)

View File

@@ -22,7 +22,7 @@ git.files = function(opts)
return
end
local show_untracked = utils.get_default(opts.show_untracked, true)
local show_untracked = utils.get_default(opts.show_untracked, false)
local recurse_submodules = utils.get_default(opts.recurse_submodules, false)
if show_untracked and recurse_submodules then
utils.notify("builtin.git_files", {

View File

@@ -132,7 +132,7 @@ builtin.current_buffer_tags = require_on_exported_call("telescope.builtin.files"
---@param opts table: options to pass to the picker
---@field cwd string: specify the path of the repo
---@field use_git_root boolean: if we should use git root as cwd or the cwd (important for submodule) (default: true)
---@field show_untracked boolean: if true, adds `--others` flag to command and shows untracked files (default: true)
---@field show_untracked boolean: if true, adds `--others` flag to command and shows untracked files (default: false)
---@field recurse_submodules boolean: if true, adds the `--recurse-submodules` flag to command (default: false)
---@field git_command table: command that will be exectued. {"git","ls-files","--exclude-standard","--cached"}
builtin.git_files = require_on_exported_call("telescope.builtin.git").files