Nvim-tree.lua API Reference

Index commands and Lua API functions for the nvim-tree.lua Neovim plugin.

1|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/NeKon69/nvim-dot --skill nvim-tree-lua-api-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Nvim-tree.lua API Reference
Source: https://github.com/NeKon69/nvim-dot/tree/main/.agents/skills/nvim-tree.lua
Command: npx skills add https://github.com/NeKon69/nvim-dot --skill nvim-tree-lua-api-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides quick access to the commands and API functions for the nvim-tree.lua Neovim plugin, streamlining file management within the editor.

Core Features & Use Cases

  • Command Index: Quickly find and execute nvim-tree commands like :NvimTreeToggle or :NvimTreeFindFile.
  • API Reference: Access Lua functions for programmatic control of the file explorer, such as require("nvim-tree").setup(conf).
  • Use Case: When you need to quickly open or close the file tree, or find a specific file without remembering the exact command, this Skill provides an immediate reference.

Quick Start

Use the Nvim-tree.lua API Reference skill to open the file tree.

Frequently Asked Questions about Nvim-tree.lua API Reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I toggle the file explorer in Neovim?

To toggle the file explorer in Neovim, use the :NvimTreeToggle command. This opens and closes the nvim-tree sidebar for direct file system navigation.

What is the Lua API function to configure nvim-tree?

The nvim-tree plugin is configured programmatically using require("nvim-tree").setup(conf). This Lua function accepts a configuration table for file explorer customization.

Can I find a specific file in the Neovim file tree without manual scrolling?

Yes, you can find a specific file without scrolling by executing the :NvimTreeFindFile command. This locates and highlights the active file within the nvim-tree explorer.

Does nvim-tree support programmatic file system manipulation?

Yes, nvim-tree supports programmatic file system manipulation through its comprehensive Lua API functions. You can reference these functions to execute file explorer operations beyond standard commands.

Why use an API reference for nvim-tree instead of standard Neovim file commands?

An API reference for nvim-tree streamlines file management by indexing commands like :NvimTreeToggle for quick execution. It solves the problem of forgetting exact command syntax within Neovim.