summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin
diff options
context:
space:
mode:
authorBen Smith <bsmithdev@mailbox.org>2022-05-18 18:27:06 +0000
committerSimon Hauser <simon.hauser@helsinki-systems.de>2022-06-30 14:01:48 +0200
commit440684edad0b56cb746c1f1aaef6a53aa703b2ce (patch)
tree145957ec5548e7b771829e173b294c508d3834a3 /lua/telescope/builtin
parentb98b9a93c67cb999493ccdc602e711c8a7a98d64 (diff)
break(git_files): change show_untracked default to false (#842)
Diffstat (limited to 'lua/telescope/builtin')
-rw-r--r--lua/telescope/builtin/git.lua2
-rw-r--r--lua/telescope/builtin/init.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua
index 5f6b17e..caff989 100644
--- a/lua/telescope/builtin/git.lua
+++ b/lua/telescope/builtin/git.lua
@@ -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", {
diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua
index 4a99f3f..e9b695b 100644
--- a/lua/telescope/builtin/init.lua
+++ b/lua/telescope/builtin/init.lua
@@ -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