Skip to content

Commit 3610dc7

Browse files
authored
Change folder browser to respect depth (#420)
* Change folder browser to respect depth I think the folder browser should respect the depth option. I'm currently trying to build a project selector in my nvim, and I need the folder browser to respect the depth if my project select is going to be useful. * simplify and remove dead code * Update finders.lua
1 parent 19872ee commit 3610dc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/telescope/_extensions/file_browser/finders.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ fb_finders.browse_folders = function(opts)
156156
hidden = hidden_opts(opts),
157157
only_dirs = true,
158158
respect_gitignore = opts.respect_gitignore,
159+
depth = opts.depth,
159160
})
160161
table.insert(data, 1, cwd)
161162
return finders.new_table { results = data, entry_maker = entry_maker }

0 commit comments

Comments
 (0)