Skip to content

Commit 98c3655

Browse files
committed
docs(#3088): tidy api meta
1 parent e47079e commit 98c3655

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

lua/nvim-tree/_meta/api/fs.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
---@meta
2-
local nvim_tree = { api = { fs = { copy = {} } } }
2+
local nvim_tree = { api = { fs = {} } }
33

44
---
55
---Clear the nvim-tree clipboard.
66
---
77
function nvim_tree.api.fs.clear_clipboard() end
88

9+
nvim_tree.api.fs.copy = {}
10+
911
---
1012
---Copy the absolute path to the system clipboard.
1113
---

lua/nvim-tree/_meta/api/marks.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---@meta
2-
local nvim_tree = { api = { marks = { bulk = {}, navigate = {}, } } }
2+
local nvim_tree = { api = { marks = {} } }
33

44
---
55
---Return the node if it is marked.
@@ -24,6 +24,8 @@ function nvim_tree.api.marks.toggle(node) end
2424
---
2525
function nvim_tree.api.marks.clear() end
2626

27+
nvim_tree.api.marks.bulk = {}
28+
2729
---
2830
---Delete all marked, prompting if [nvim_tree.config.ui.confirm] {remove}
2931
---
@@ -39,6 +41,8 @@ function nvim_tree.api.marks.bulk.trash() end
3941
---
4042
function nvim_tree.api.marks.bulk.move() end
4143

44+
nvim_tree.api.marks.navigate = {}
45+
4246
---
4347
---Navigate to the next marked node, wraps.
4448
---

lua/nvim-tree/api.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
local api = {}
2+
13
---@brief
24
---nvim-tree exposes a public API. This is non breaking, with additions made as necessary.
35
---
@@ -35,17 +37,15 @@
3537
--
3638
--Load the (empty) meta definitions
3739
--
38-
local api = {
39-
commands = require("nvim-tree._meta.api.commands"),
40-
events = require("nvim-tree._meta.api.events"),
41-
filter = require("nvim-tree._meta.api.filter"),
42-
fs = require("nvim-tree._meta.api.fs"),
43-
health = require("nvim-tree._meta.api.health"),
44-
map = require("nvim-tree._meta.api.map"),
45-
marks = require("nvim-tree._meta.api.marks"),
46-
node = require("nvim-tree._meta.api.node"),
47-
tree = require("nvim-tree._meta.api.tree"),
48-
}
40+
api.commands = require("nvim-tree._meta.api.commands")
41+
api.events = require("nvim-tree._meta.api.events")
42+
api.filter = require("nvim-tree._meta.api.filter")
43+
api.fs = require("nvim-tree._meta.api.fs")
44+
api.health = require("nvim-tree._meta.api.health")
45+
api.map = require("nvim-tree._meta.api.map")
46+
api.marks = require("nvim-tree._meta.api.marks")
47+
api.node = require("nvim-tree._meta.api.node")
48+
api.tree = require("nvim-tree._meta.api.tree")
4949

5050

5151
--

0 commit comments

Comments
 (0)