feat: add hidden opt to file_browser (#608)

:Telescope file_browser hidden=true
This commit is contained in:
Tom
2021-03-04 19:40:35 +00:00
committed by GitHub
parent 908752fc67
commit e7f724b437

View File

@@ -206,6 +206,7 @@ files.file_browser = function(opts)
local data = {} local data = {}
scan.scan_dir(path, { scan.scan_dir(path, {
hidden = opts.hidden or false,
add_dirs = true, add_dirs = true,
depth = 1, depth = 1,
on_insert = function(entry, typ) on_insert = function(entry, typ)