# nvim-treesitter/nvim-treesitter-context

Show code context

Repository: https://github.com/nvim-treesitter/nvim-treesitter-context
Canonical: https://ross.abutalabs.com/products/nvim-treesitter-context
Language: Janet
License: MIT
License Family: permissive
Topics: vim, neovim, neovim-plugin, vim-plugin
Last push: 2026-08-02T08:51:48+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 2144, "days_push": 31, "days_rel": 461, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3225, forks 239 (observed 2026-08-28T04:07:49.908958+00:00)

## What it is
A Neovim plugin that displays the enclosing code context (functions, classes, blocks) at the top of the window using Tree-sitter parsers. It is a lightweight alternative to context.vim supporting dozens of languages.

## Use cases
- show current function context while scrolling in neovim
- sticky header showing class or function scope
- keep code context visible in long files
- treesitter-based context line in vim
- see which block I am inside while editing

## When to choose
- you use Neovim >= 0.9 with Tree-sitter parsers installed
- you want a lightweight, actively maintained context display
- you work in deeply nested code and lose track of scope

## When to avoid
- you use Vim or Neovim older than 0.9 without the compat tag
- your language's parser is unsupported or community-maintained and unstable
- you prefer full-file minimaps or other navigation aids

## Facets
- artifact type: plugin
- maturity: active
- function: editor, developer-tools
- domain: text-editors, developer-tools
- platform: editor-plugin, cli
- tags: neovim, treesitter, code-context, floating-window, vim-plugin

## Member repositories
- nvim-treesitter/nvim-treesitter-context (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:49.908958+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-29T18:44:17.266523+00:00, confidence not recorded.
  - readme: https://github.com/nvim-treesitter/nvim-treesitter-context (fetched 2026-08-28T04:07:49.908958+00:00, sha 4db86eb3eeab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
