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 2b8623e commit 2f18543Copy full SHA for 2f18543
1 file changed
lua/nvim-tree/node/init.lua
@@ -146,13 +146,8 @@ end
146
147
---@param expand_opts ApiTreeExpandOpts?
148
function Node:expand(expand_opts)
149
- local DirectoryNode = require("nvim-tree.node.directory")
150
- local FileNode = require("nvim-tree.node.file")
151
-
152
- if self:is(FileNode) then
+ if self.parent then
153
self.parent:expand(expand_opts)
154
- else
155
- self:as(DirectoryNode).expand_opts(expand_opts)
156
end
157
158
0 commit comments