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 b0ac951 commit 2b8623eCopy full SHA for 2b8623e
1 file changed
lua/nvim-tree/node/init.lua
@@ -1,6 +1,4 @@
1
local Class = require("nvim-tree.classic")
2
-local DirectoryNode = require("nvim-tree.node.directory")
3
-local FileNode = require("nvim-tree.node.file")
4
5
---Abstract Node class.
6
---@class (exact) Node: Class
@@ -148,6 +146,9 @@ end
148
146
149
147
---@param expand_opts ApiTreeExpandOpts?
150
function Node:expand(expand_opts)
+ local DirectoryNode = require("nvim-tree.node.directory")
+ local FileNode = require("nvim-tree.node.file")
151
+
152
if self:is(FileNode) then
153
self.parent:expand(expand_opts)
154
else
0 commit comments