We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447f395 commit e0961e4Copy full SHA for e0961e4
lua/nvim-tree/actions/expand-all.lua
@@ -11,6 +11,10 @@ local function expand(node)
11
end
12
13
local function iterate(_node)
14
+ if _node.parent and _node.nodes and not _node.open then
15
+ expand(_node)
16
+ end
17
+
18
for _, node in pairs(_node.nodes) do
19
if node.nodes and not node.open then
20
expand(node)
@@ -22,8 +26,9 @@ local function iterate(_node)
22
26
23
27
24
28
25
-function M.fn()
- iterate(core.get_explorer())
29
+function M.fn(base_node)
30
+ local node = base_node.nodes and base_node or core.get_explorer()
31
+ iterate(node)
32
renderer.draw()
33
34
0 commit comments