File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ local events = require("nvim-tree.events") -- needed for event registration
66local keymap = require (" nvim-tree.keymap" ) -- needed for default on attach
77local 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
2525--- Hydrate implementations that may be called pre setup
2626--- @param api table
2727local 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
You can’t perform that action at this time.
0 commit comments