File tree 6 files changed +11
-11
lines changed
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function DirectoryLinkNode:new(args)
28
28
end
29
29
30
30
function DirectoryLinkNode :destroy ()
31
- DirectoryNode .destroy (self )
31
+ self . super .destroy (self )
32
32
end
33
33
34
34
--- Update the directory git_status of link target and the file status of the link itself
60
60
--- Maybe override name with arrow
61
61
--- @return HighlightedString name
62
62
function DirectoryLinkNode :highlighted_name ()
63
- local name = DirectoryNode .highlighted_name (self )
63
+ local name = self . super .highlighted_name (self )
64
64
65
65
if self .explorer .opts .renderer .symlink_destination then
66
66
local link_to = utils .path_relative (self .link_to , self .explorer .absolute_path )
74
74
--- Create a sanitized partial copy of a node, populating children recursively.
75
75
--- @return DirectoryLinkNode cloned
76
76
function DirectoryLinkNode :clone ()
77
- local clone = DirectoryNode .clone (self ) --[[ @as DirectoryLinkNode]]
77
+ local clone = self . super .clone (self ) --[[ @as DirectoryLinkNode]]
78
78
79
79
clone .link_to = self .link_to
80
80
clone .fs_stat_target = self .fs_stat_target
Original file line number Diff line number Diff line change 1
1
local git_utils = require (" nvim-tree.git.utils" )
2
2
local icons = require (" nvim-tree.renderer.components.devicons" )
3
3
local notify = require (" nvim-tree.notify" )
4
+
4
5
local Node = require (" nvim-tree.node" )
5
6
6
7
--- @class (exact ) DirectoryNode : Node
@@ -46,7 +47,7 @@ function DirectoryNode:destroy()
46
47
end
47
48
end
48
49
49
- Node .destroy (self )
50
+ self . super .destroy (self )
50
51
end
51
52
52
53
--- Update the git_status of the directory
272
273
--- Create a sanitized partial copy of a node, populating children recursively.
273
274
--- @return DirectoryNode cloned
274
275
function DirectoryNode :clone ()
275
- local clone = Node .clone (self ) --[[ @as DirectoryNode]]
276
+ local clone = self . super .clone (self ) --[[ @as DirectoryNode]]
276
277
277
278
clone .has_children = self .has_children
278
279
clone .group_next = nil
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function FileLinkNode:new(args)
21
21
end
22
22
23
23
function FileLinkNode :destroy ()
24
- FileNode .destroy (self )
24
+ self . super .destroy (self )
25
25
end
26
26
27
27
--- Update the git_status of the target otherwise the link itself
60
60
--- Create a sanitized partial copy of a node
61
61
--- @return FileLinkNode cloned
62
62
function FileLinkNode :clone ()
63
- local clone = FileNode .clone (self ) --[[ @as FileLinkNode]]
63
+ local clone = self . super .clone (self ) --[[ @as FileLinkNode]]
64
64
65
65
clone .link_to = self .link_to
66
66
clone .fs_stat_target = self .fs_stat_target
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function FileNode:new(args)
31
31
end
32
32
33
33
function FileNode :destroy ()
34
- Node .destroy (self )
34
+ self . super .destroy (self )
35
35
end
36
36
37
37
--- Update the GitStatus of the file
96
96
--- Create a sanitized partial copy of a node
97
97
--- @return FileNode cloned
98
98
function FileNode :clone ()
99
- local clone = Node .clone (self ) --[[ @as FileNode]]
99
+ local clone = self . super .clone (self ) --[[ @as FileNode]]
100
100
101
101
clone .extension = self .extension
102
102
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function RootNode:is_dotfile()
19
19
end
20
20
21
21
function RootNode :destroy ()
22
- DirectoryNode .destroy (self )
22
+ self . super .destroy (self )
23
23
end
24
24
25
25
return RootNode
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ local Class = require("nvim-tree.classic")
4
4
--- @alias DecoratorIconPlacement " none" | " before" | " after" | " signcolumn" | " right_align"
5
5
6
6
--- Abstract Decorator
7
- --- Uses the factory pattern to instantiate child instances.
8
7
--- @class (exact ) Decorator : Class
9
8
--- @field protected explorer Explorer
10
9
--- @field protected enabled boolean
You can’t perform that action at this time.
0 commit comments