|
1 | 1 | ---@meta |
2 | | - |
3 | 2 | -- Deprecated top level API modules. |
4 | 3 | -- Remember to add mappings in legacy.lua `api_map` |
5 | 4 |
|
6 | | -local M = {} |
| 5 | +local nvim_tree = { api = {} } |
7 | 6 |
|
8 | | -M.config = {} |
| 7 | +nvim_tree.api.config = {} |
9 | 8 |
|
10 | | -M.config.mappings = {} |
| 9 | +nvim_tree.api.config.mappings = {} |
11 | 10 |
|
12 | 11 | ---@deprecated use `nvim_tree.api.map.keymap.current()` |
13 | | -function M.config.mappings.get_keymap() end |
| 12 | +function nvim_tree.api.config.mappings.get_keymap() end |
14 | 13 |
|
15 | 14 | ---@deprecated use `nvim_tree.api.map.keymap.default()` |
16 | | -function M.config.mappings.get_keymap_default() end |
| 15 | +function nvim_tree.api.config.mappings.get_keymap_default() end |
17 | 16 |
|
18 | 17 | ---@deprecated use `nvim_tree.api.map.on_attach.default()` |
19 | | -function M.config.mappings.default_on_attach(bufnr) end |
| 18 | +function nvim_tree.api.config.mappings.default_on_attach(bufnr) end |
20 | 19 |
|
21 | | -M.live_filter = {} |
| 20 | +nvim_tree.api.live_filter = {} |
22 | 21 |
|
23 | 22 | ---@deprecated use `nvim_tree.api.filter.live.start()` |
24 | | -function M.live_filter.start() end |
| 23 | +function nvim_tree.api.live_filter.start() end |
25 | 24 |
|
26 | 25 | ---@deprecated use `nvim_tree.api.filter.live.clear()` |
27 | | -function M.live_filter.clear() end |
| 26 | +function nvim_tree.api.live_filter.clear() end |
28 | 27 |
|
29 | | -M.diagnostics = {} |
| 28 | +nvim_tree.api.diagnostics = {} |
30 | 29 |
|
31 | 30 | ---@deprecated use `nvim_tree.api.health.hi_test()` |
32 | | -function M.diagnostics.hi_test() end |
| 31 | +function nvim_tree.api.diagnostics.hi_test() end |
33 | 32 |
|
34 | | -return M |
| 33 | +return nvim_tree.api |
0 commit comments