fix(neotree): expand also children

This commit is contained in:
əlemi 2024-09-07 05:10:58 +02:00
parent 89e3f3e2c7
commit 6a0ba39685
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 0 deletions

View file

@ -160,6 +160,9 @@ M.update_state = function(state)
renderer.show_nodes(root, state)
for _, node in ipairs(state.tree:get_nodes()) do
node:expand()
for _, child_node in ipairs(state.tree:get_nodes(node)) do
child_node:expand()
end
end
end

View file

@ -14,6 +14,7 @@ local function toggle(node)
else
node:expand()
end
manager.refresh("codemp")
end
M.refresh = require("neo-tree.utils").wrap(manager.refresh, "codemp")