You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/nvim-tree/api.lua
+75-1Lines changed: 75 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,75 @@
1
1
localapi= {}
2
2
3
+
---@brief
4
+
---nvim-tree exposes a public API. This is non breaking, with additions made as necessary.
5
+
---
6
+
---Please do not require or use modules other than `nvim-tree.api`, as internal modules will change without notice.
7
+
---
8
+
---The API is separated into multiple modules:
9
+
---
10
+
---- [nvim-tree-api-commands]
11
+
---- [nvim-tree-api-events]
12
+
---- [nvim-tree-api-filter]
13
+
---- [nvim-tree-api-fs]
14
+
---- [nvim-tree-api-health]
15
+
---- [nvim-tree-api-map]
16
+
---- [nvim-tree-api-marks]
17
+
---- [nvim-tree-api-node]
18
+
---- [nvim-tree-api-tree]
19
+
---
20
+
---Modules are accessed via `api.<module>.<function>`
21
+
---
22
+
---Example invocation of the `reload` function in the `tree` module:
23
+
---```lua
24
+
---
25
+
---local api = require("nvim-tree.api")
26
+
---api.tree.reload()
27
+
---```
28
+
---Generally, functions accepting a [nvim_tree.api.Node] as their first argument will use the node under the cursor when that argument is not present or nil. e.g. the following are functionally identical:
0 commit comments