|
1 | | -*nvim-tree.lua* A File Explorer For Neovim Written In Lua |
| 1 | +*nvim-tree* A File Explorer For Neovim Written In Lua |
2 | 2 |
|
3 | 3 | Author: Yazdani Kiyan |
4 | 4 |
|
5 | 5 | ============================================================================== |
6 | | -CONTENTS *nvim-tree* |
| 6 | +CONTENTS |
7 | 7 |
|
8 | 8 | 1. Introduction |nvim-tree-introduction| |
9 | 9 | 2. Quickstart |nvim-tree-quickstart| |
@@ -3445,7 +3445,7 @@ highlight group is not, hard linking as follows: > |
3445 | 3445 | |nvim-tree-api.tree.winid()| |
3446 | 3446 |
|
3447 | 3447 | ============================================================================== |
3448 | | -Lua module: nvim_tree.Config *nvim-tree-config* |
| 3448 | +Lua module: nvim_tree *nvim-tree-module* |
3449 | 3449 |
|
3450 | 3450 | *nvim_tree.Config* |
3451 | 3451 |
|
@@ -4262,6 +4262,96 @@ Lua module: nvim_tree.Config *nvim-tree-config* |
4262 | 4262 |
|
4263 | 4263 |
|
4264 | 4264 |
|
| 4265 | +============================================================================== |
| 4266 | +Lua module: nvim_tree.api *nvim-tree-api* |
| 4267 | + |
| 4268 | +*nvim_tree.api.CollapseOpts* |
| 4269 | + |
| 4270 | + Fields: ~ |
| 4271 | + • {keep_buffers}? (`boolean`) do not collapse nodes with open buffers |
| 4272 | + |
| 4273 | +*nvim_tree.api.NodeBufferOpts* |
| 4274 | + |
| 4275 | + Fields: ~ |
| 4276 | + • {force}? (`boolean`) delete/wipe even if buffer is modified, default |
| 4277 | + false |
| 4278 | + |
| 4279 | +*nvim_tree.api.NodeEditOpts* |
| 4280 | + |
| 4281 | + Fields: ~ |
| 4282 | + • {quit_on_open}? (`boolean`) quits the tree when opening the file |
| 4283 | + • {focus}? (`boolean`) keep focus in the tree when opening the |
| 4284 | + file |
| 4285 | + |
| 4286 | +*nvim_tree.api.TreeExpandOpts* |
| 4287 | + |
| 4288 | + Fields: ~ |
| 4289 | + • {expand_until}? (`fun(expansion_count: integer, node: Node): boolean`) |
| 4290 | + Return true if node should be expanded. |
| 4291 | + expansion_count is the total number of folders |
| 4292 | + expanded. |
| 4293 | + |
| 4294 | +*nvim_tree.api.TreeFindFileOpts* |
| 4295 | + |
| 4296 | + Fields: ~ |
| 4297 | + • {buf}? (`string|number`) absolute/relative path OR bufnr |
| 4298 | + to find |
| 4299 | + • {open}? (`boolean`) open the tree if necessary |
| 4300 | + • {current_window}? (`boolean`) requires open, open in the current |
| 4301 | + window |
| 4302 | + • {winid}? (`number`) open the tree in the specified |winid|, |
| 4303 | + overrides current_window |
| 4304 | + • {update_root}? (`boolean`) see |
| 4305 | + |nvim-tree.update_focused_file.update_root| |
| 4306 | + • {focus}? (`boolean`) focus the tree |
| 4307 | + |
| 4308 | +*nvim_tree.api.TreeIsVisibleOpts* |
| 4309 | + |
| 4310 | + Fields: ~ |
| 4311 | + • {tabpage}? (`number`) as per |nvim_get_current_tabpage()| |
| 4312 | + • {any_tabpage}? (`boolean`) visible on any tab, default false |
| 4313 | + |
| 4314 | +*nvim_tree.api.TreeOpenOpts* |
| 4315 | + |
| 4316 | + Fields: ~ |
| 4317 | + • {path}? (`string`) root directory for the tree |
| 4318 | + • {current_window}? (`boolean`) open the tree in the current window |
| 4319 | + • {winid}? (`number`) open the tree in the specified winid, |
| 4320 | + overrides current_window |
| 4321 | + • {find_file}? (`boolean`) find the current buffer |
| 4322 | + • {update_root}? (`boolean`) requires find_file, see |
| 4323 | + |nvim-tree.update_focused_file.update_root| |
| 4324 | + • {focus}? (`boolean`) focus the tree when opening, default |
| 4325 | + true |
| 4326 | + |
| 4327 | +*nvim_tree.api.TreeResizeOpts* |
| 4328 | + |
| 4329 | + Fields: ~ |
| 4330 | + • {width}? (`string|function|number|table`) new |
| 4331 | + |nvim-tree.view.width| value |
| 4332 | + • {absolute}? (`number`) set the width |
| 4333 | + • {relative}? (`number`) relative width adjustment |
| 4334 | + |
| 4335 | +*nvim_tree.api.TreeToggleOpts* |
| 4336 | + |
| 4337 | + Fields: ~ |
| 4338 | + • {path}? (`string`) root directory for the tree |
| 4339 | + • {current_window}? (`boolean`) open the tree in the current window |
| 4340 | + • {winid}? (`number`) open the tree in the specified |winid|, |
| 4341 | + overrides current_window |
| 4342 | + • {find_file}? (`boolean`) find the current buffer |
| 4343 | + • {update_root}? (`boolean`) requires find_file, see |
| 4344 | + |nvim-tree.update_focused_file.update_root| |
| 4345 | + • {focus}? (`boolean`) focus the tree when opening, default |
| 4346 | + true |
| 4347 | + |
| 4348 | +*nvim_tree.api.TreeWinIdOpts* |
| 4349 | + |
| 4350 | + Fields: ~ |
| 4351 | + • {tabpage}? (`number`) tabpage, 0 or nil for current, default nil |
| 4352 | + |
| 4353 | + |
| 4354 | + |
4265 | 4355 | ============================================================================== |
4266 | 4356 | Lua module: nvim_tree.api.decorator *nvim-tree-api-decorator* |
4267 | 4357 |
|
|
0 commit comments