Nvim-treesitter API Reference

Index nvim-treesitter Vim commands and Lua API functions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a quick reference for the nvim-treesitter plugin's commands and Lua API, helping users efficiently manage and utilize its features for code parsing and syntax highlighting.

Core Features & Use Cases

  • Command Index: Quickly find and use :TS* commands for enabling, disabling, and managing treesitter modules.
  • API Reference: Access Lua functions for configuring and interacting with treesitter.
  • Use Case: A developer needs to quickly enable or disable treesitter for a specific buffer or install a new language parser. They can consult this Skill for the exact command or API call.

Quick Start

Use the Nvim-treesitter API Reference to find the command for installing a new language parser.

Frequently Asked Questions about Nvim-treesitter API Reference

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

FAQPage Schema
How do I install a new treesitter language parser in Neovim?

To install a new treesitter language parser in Neovim, use the `:TSInstall` command followed by the language name. This Skill provides an indexed reference for the nvim-treesitter plugin's commands and Lua API functions.

What is the nvim-treesitter API used for?

The nvim-treesitter API is used for managing and configuring code parsing and syntax highlighting within the Neovim editor. It provides Lua functions to interact with treesitter modules and manipulate buffers.

How do I enable or disable syntax highlighting for a specific buffer in Neovim?

To enable or disable syntax highlighting for a specific buffer, utilize the `:TSBufEnable` or `:TSBufDisable` commands. This Skill indexes these specific Vim commands for efficient treesitter module management.

Do I need to know Lua scripting to use nvim-treesitter commands?

Basic Vim commands for treesitter do not require Lua scripting, but configuring the API does require an understanding of Neovim plugin architecture and Lua scripting. This reference covers both command and API usage.

What is the best way to find the exact Lua API call for treesitter configuration?

The best way to find the exact Lua API call is to consult the API reference index provided by this Skill. It facilitates efficient lookup of Lua functions needed for configuring code parsing and syntax highlighting.