vim.treesitter

Reference Neovim Treesitter API definitions, type stubs, and method signatures for Lua plugin development.

4|Updated Sep 25, 2024
One-click install
npx skills add https://github.com/khulnasoft/init.lua --skill vim-treesitter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vim.treesitter
Source: https://github.com/khulnasoft/init.lua/tree/main/skills/vim.treesitter
Command: npx skills add https://github.com/khulnasoft/init.lua --skill vim-treesitter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This document provides a concise Neovim Treesitter API reference including type stubs and method signatures to accelerate plugin development and code exploration.

Core Features & Use Cases

  • Comprehensive API references for TSNode, TSTree, and TSQuery with example signatures.
  • Quick lookups for common treesitter operations to speed up Neovim Lua scripting.
  • Use Case: When building a Neovim plugin that analyzes or highlights code using treesitter, reference this skill to recall available APIs.

Quick Start

Open this skill to reference Neovim Treesitter API definitions and usage notes.

Frequently Asked Questions about vim.treesitter

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

FAQPage Schema
What Neovim Treesitter APIs are available for Lua plugin development?

Neovim Treesitter API references for Lua include comprehensive type stubs and method signatures for TSNode, TSTree, and TSQuery, accelerating plugin development and code exploration.

How do I look up method signatures for TSNode and TSTree in Neovim?

Look up TSNode and TSTree method signatures by accessing consolidated Neovim Treesitter API definitions and usage notes designed to load in context during plugin activation.

Does this Treesitter API reference include usage examples for TSQuery?

Yes, the Treesitter API reference includes example signatures for TSQuery alongside comprehensive API references and usage notes for building Neovim plugins.

When do I need a Treesitter API reference for Neovim Lua scripting?

You need a Treesitter API reference when building a Neovim plugin that analyzes or highlights code, allowing you to recall available APIs and speed up Lua scripting.

Can I use this reference to speed up code highlight plugin development in Neovim?

Yes, you can use this reference to speed up Neovim Lua scripting for code highlighting plugins by providing quick lookups for common Treesitter operations and method signatures.