summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom <tapayne88@users.noreply.github.com>2021-03-04 19:40:35 +0000
committerGitHub <noreply@github.com>2021-03-04 20:40:35 +0100
commite7f724b437aa0cdfecb144e39aea67d62b745f83 (patch)
tree1415ef666e56c4c17c8cf9b7d28219710867cdc7
parent908752fc67f0aff43e35ffb175b5e6226874bad5 (diff)
feat: add hidden opt to file_browser (#608)
:Telescope file_browser hidden=true
-rw-r--r--lua/telescope/builtin/files.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua
index 762c895..9749635 100644
--- a/lua/telescope/builtin/files.lua
+++ b/lua/telescope/builtin/files.lua
@@ -206,6 +206,7 @@ files.file_browser = function(opts)
local data = {}
scan.scan_dir(path, {
+ hidden = opts.hidden or false,
add_dirs = true,
depth = 1,
on_insert = function(entry, typ)