Skip to content

Commit db796fc

Browse files
authored
docs: complete API calls for commands (#2556)
doc: complete API calls for commands
1 parent fa00b57 commit db796fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/nvim-tree-lua.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ via |nvim-tree.on_attach| e.g. >
232232

233233
Opens the tree. See |nvim-tree-api.tree.open()|
234234

235-
Calls: `api.tree.open({ path = "<arg>" })`
235+
Calls: `api.tree.open({ path = "<args>" })`
236236

237237
*:NvimTreeClose*
238238

@@ -244,13 +244,13 @@ via |nvim-tree.on_attach| e.g. >
244244

245245
Open or close the tree. See |nvim-tree-api.tree.toggle()|
246246

247-
Calls: `api.tree.toggle({ path = "<arg>" })`
247+
Calls: `api.tree.toggle({ path = "<args>", find_file = false, update_root = false, focus = true, })`
248248

249249
*:NvimTreeFocus*
250250

251251
Open the tree if it is closed, and then focus on the tree.
252252

253-
See |nvim-tree-api.tree.toggle()|
253+
See |nvim-tree-api.tree.focus()|
254254

255255
Calls: `api.tree.focus()`
256256

@@ -272,7 +272,7 @@ via |nvim-tree.on_attach| e.g. >
272272

273273
See |nvim-tree-api.tree.find_file()|
274274

275-
Calls: `api.tree.find_file { open = true, update_root = <bang> }`
275+
Calls: `api.tree.find_file({ update_root = <bang>, open = true, focus = true, })`
276276

277277
*:NvimTreeFindFileToggle*
278278

@@ -284,7 +284,7 @@ via |nvim-tree.on_attach| e.g. >
284284

285285
See |nvim-tree-api.tree.toggle()|
286286

287-
Calls: `api.tree.toggle { find_file = true, focus = true, path = "<arg>", update_root = <bang> }`
287+
Calls: `api.tree.toggle({ path = "<args>", update_root = <bang>, find_file = true, focus = true, })`
288288

289289
*:NvimTreeClipboard*
290290

0 commit comments

Comments
 (0)