Skip to content

Commit ea994a6

Browse files
committed
normalise explorer RootNode new call, tidy annotations
1 parent a7ae7cc commit ea994a6

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

lua/nvim-tree/explorer/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Explorer:create(path)
5151
---@type Explorer
5252
local explorer_placeholder = nil
5353

54-
local o = RootNode.create(self, explorer_placeholder, path, "..", nil)
54+
local o = RootNode:create(explorer_placeholder, path, "..", nil)
5555

5656
o = self:new(o) --[[@as Explorer]]
5757

lua/nvim-tree/renderer/decorator/copied.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ local ICON_PLACEMENT = require("nvim-tree.enum").ICON_PLACEMENT
44
local Decorator = require("nvim-tree.renderer.decorator")
55

66
---@class (exact) DecoratorCopied: Decorator
7-
---@field enabled boolean
87
---@field icon HighlightedString?
98
local DecoratorCopied = Decorator:new()
109

lua/nvim-tree/renderer/decorator/opened.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ local ICON_PLACEMENT = require("nvim-tree.enum").ICON_PLACEMENT
66
local Decorator = require("nvim-tree.renderer.decorator")
77

88
---@class (exact) DecoratorOpened: Decorator
9-
---@field enabled boolean
109
---@field icon HighlightedString|nil
1110
local DecoratorOpened = Decorator:new()
1211

0 commit comments

Comments
 (0)