# nvim-treesitter/nvim-treesitter-textobjects

Repository: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
Canonical: https://ross.abutalabs.com/products/nvim-treesitter-textobjects
Language: Tree-sitter Query
License: Apache-2.0
License Family: permissive
Topics: neovim, lua, nvim, tree-sitter, hacktoberfest
Last push: 2026-07-19T11:05:45+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 2173, "days_push": 45, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2812, forks 270 (observed 2026-08-28T04:07:23.724258+00:00)

## What it is
A Neovim plugin that provides syntax-aware text objects using tree-sitter queries, supporting select, move, swap, and peek operations on code structures like functions, classes, and parameters. It extends Vim's text object concept with language-aware granularity.

## Use cases
- select a whole function with a keymap in neovim
- swap function parameters syntax-aware
- jump to next function or class boundary
- delete inner part of a function or class
- peek at a function definition without leaving cursor
- define custom text objects per language

## When to choose
- you use Neovim nightly or recent stable with tree-sitter support
- you want syntax-aware motions and selections instead of regex-based ones
- you already use nvim-treesitter

## When to avoid
- you use an editor other than Neovim
- your Neovim build lacks tree-sitter support
- you only need simple bracket/word text objects

## Facets
- artifact type: plugin
- maturity: active
- function: editor, parser, developer-tools
- domain: text-editors, developer-tools, parsers
- platform: editor-plugin, windows
- tags: neovim, tree-sitter, textobjects, lua, vim-plugin, linux, macos

## Member repositories
- nvim-treesitter/nvim-treesitter-textobjects (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:23.724258+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:13:31.707340+00:00, confidence not recorded.
  - readme: https://github.com/nvim-treesitter/nvim-treesitter-textobjects (fetched 2026-08-28T04:07:23.724258+00:00, sha f13f0e92fb48)
- Data as of 2026-08-30T08:39:29.467469+00:00.
