awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
nvim-treesitter avatar

nvim-treesitter/nvim-treesitter-context

0
View on GitHub↗

Nvim Treesitter Context

nvim-treesitter-context is a Neovim editor extension that provides structural awareness of source files by displaying sticky headers of surrounding code blocks. It utilizes Tree-sitter queries to identify parent functions and classes, keeping them visible at the top of the editor window while scrolling.

The tool allows for language rule customization, enabling the definition of specific structural queries to modify how context is detected for different programming languages. Users can also adjust the visual appearance of the context window through custom highlight groups.

Beyond visual orientation, the plugin provides navigation primitives to jump the cursor directly to the beginning of the surrounding code block or structural parent.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Sticky Header Pinning - Maintains a sticky header of parent code blocks at the top of the viewport during scrolling.
  • Code Analysis Query Languages - Uses Tree-sitter queries to analyze the structural properties and hierarchical nesting of source code.
  • Structural Node Querying - Uses structural queries to identify relevant parent blocks for a specific programming language.
  • Neovim Plugins - Extends Neovim by providing structural awareness through a sticky view of parent code blocks.
  • Structural Context Plugins - Displays sticky headers of surrounding code structures at the top of the editor window while scrolling.
  • Structural Query Mappings - Associates programming languages with distinct structural rules to determine valid code context.
  • Custom Structural Rules - Allows users to define custom structural queries to modify context detection for different programming languages.
  • Code Navigation Utilities - Improves navigation efficiency by keeping parent functions and classes visible during scrolling.
  • Structural Code Navigation - Provides structural code navigation by jumping the cursor to the start of the surrounding code block.
  • Source Code Analysis Tools - Analyzes the source code structure to enable jumping between a line of code and its parent definition.
  • Editing and Text Manipulation - Displays floating context for current block.
3,120 stars·224 forks·Janet·mit·13 views

Star history

Star history chart for nvim-treesitter/nvim-treesitter-contextStar history chart for nvim-treesitter/nvim-treesitter-context

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Nvim Treesitter Context

These projects share indexed features with Nvim Treesitter Context. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • nvim-mini/mini.nvimnvim-mini avatar

    nvim-mini/mini.nvim

    9,325View on GitHub↗

    mini.nvim is a comprehensive library of independent modules designed to extend Neovim with a wide array of navigation, user interface, and text manipulation tools. It serves as a modular plugin collection, a UI toolkit for creating custom statuslines and notifications, and a package manager for installing and pinning external plugins from Git. The project provides a specialized fuzzy picker framework for filtering files and symbols, an LSP completion engine with interactive snippet expansion, and a dedicated plugin test framework that uses headless editor instances and remote procedure calls

    Lualuamini-nvimneovim
    View on GitHub↗9,325
  • kylechui/nvim-surroundkylechui avatar

    kylechui/nvim-surround

    4,228View on GitHub↗

    nvim-surround is a Lua-based extension for Neovim designed to add, change, and delete surrounding delimiter pairs around text and code. It functions as a text object manipulator that wraps or removes brackets, quotes, and tags using motions and selections. The plugin integrates with Tree-sitter to identify structural code nodes, allowing for the precise surrounding of syntax elements based on the structural syntax tree. It also supports custom surround definitions, enabling users to define specialized delimiter pairs and aliases. The core capability surface covers basic surrounding operation

    Lua
    View on GitHub↗4,228
  • folke/flash.nvimfolke avatar

    folke/flash.nvim

    3,903View on GitHub↗

    flash.nvim is a label-based navigation engine and motion plugin for Neovim. It provides a system for fast cursor repositioning by marking targets across the screen with unique characters, allowing for instant movement to specific characters, search matches, and code structures. The plugin extends navigation through Tree-Sitter integration, enabling the identification and selection of parent nodes and structural code blocks. It further distinguishes itself by supporting multi-window cursor movement, allowing users to search for patterns and jump between different files or split windows using a

    Luaneovimneovim-plugin
    View on GitHub↗3,903
  • windwp/nvim-autopairswindwp avatar

    windwp/nvim-autopairs

    4,051View on GitHub↗

    nvim-autopairs is a Lua-based extension for Neovim that automatically inserts closing brackets, quotes, and keywords to maintain balanced syntax. It functions as a contextual bracket automator, utilizing Tree-Sitter structural nodes to determine when to insert or skip closing characters based on the code's actual syntax tree. The plugin distinguishes itself by using Tree-Sitter awareness to prevent inserting pairs inside strings or comments. It supports dynamic closing string resolution and custom pairing logic, allowing users to define specific rules using regular expressions and filetype fi

    Luaautopairsluaneovim
    View on GitHub↗4,051
Compare all 30 related projects→

Frequently asked questions

What does nvim-treesitter/nvim-treesitter-context do?

nvim-treesitter-context is a Neovim editor extension that provides structural awareness of source files by displaying sticky headers of surrounding code blocks. It utilizes Tree-sitter queries to identify parent functions and classes, keeping them visible at the top of the editor window while scrolling.

What are the main features of nvim-treesitter/nvim-treesitter-context?

The main features of nvim-treesitter/nvim-treesitter-context are: Sticky Header Pinning, Code Analysis Query Languages, Structural Node Querying, Neovim Plugins, Structural Context Plugins, Structural Query Mappings, Custom Structural Rules, Code Navigation Utilities.

Which projects share features with nvim-treesitter/nvim-treesitter-context?

Projects with overlapping indexed features include: nvim-mini/mini.nvim — mini.nvim is a comprehensive library of independent modules designed to extend Neovim with a wide array of navigation,… kylechui/nvim-surround — nvim-surround is a Lua-based extension for Neovim designed to add, change, and delete surrounding delimiter pairs… folke/flash.nvim — flash.nvim is a label-based navigation engine and motion plugin for Neovim. It provides a system for fast cursor… windwp/nvim-autopairs — nvim-autopairs is a Lua-based extension for Neovim that automatically inserts closing brackets, quotes, and keywords… sinelaw/fresh — Zed is a terminal-based code editor built in Rust that provides a full-featured editing experience with familiar… sebastianbergmann/code-unit-reverse-lookup — This project is a static code analysis tool that functions as a code unit resolver and source code line mapper. It…