Skip to content

Commit 11f96e1

Browse files
committed
docs(#3088): tidy pre comments
1 parent f71ff50 commit 11f96e1

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

lua/nvim-tree/api/impl/pre.lua

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local events = require("nvim-tree.events") -- needed for event registration
66
local keymap = require("nvim-tree.keymap") -- needed for default on attach
77
local notify = require("nvim-tree.notify") -- already required by events and others
88

9-
local UserDecorator = require("nvim-tree.renderer.decorator.user") -- TODO #3241
9+
local UserDecorator = require("nvim-tree.renderer.decorator.user")
1010

1111
---Walk the api, hydrating all functions with the error notification
1212
---@param t table api root or sub-module
@@ -25,22 +25,32 @@ end
2525
---Hydrate implementations that may be called pre setup
2626
---@param api table
2727
local function hydrate_pre(api)
28+
--
29+
-- Essential
30+
--
31+
api.events.Event = events.Event
32+
api.events.subscribe = events.subscribe
33+
34+
api.map.default_on_attach = keymap.default_on_attach
35+
36+
2837
--
2938
-- May be lazily requried on execution
3039
--
3140
api.health.hi_test = function() require("nvim-tree.appearance.hi-test")() end
3241

42+
3343
--
34-
-- Essential or already required elsewhere
44+
-- Already required elsewhere
3545
--
3646
api.commands.get = commands.get
3747

38-
api.events.Event = events.Event
39-
api.events.subscribe = events.subscribe
40-
41-
api.map.default_on_attach = keymap.default_on_attach
4248
api.map.get_keymap_default = keymap.get_keymap_default
4349

50+
51+
--
52+
-- TODO #3241
53+
--
4454
api.decorator = {}
4555
---Create a decorator class by calling :extend()
4656
---See :help nvim-tree-decorators

0 commit comments

Comments
 (0)