mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-06 06:46:10 +00:00
break(git_files): change show_untracked default to false (#842)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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", {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user