JoosepAlviste/nvim-ts-context-commentstring
Neovim treesitter plugin for setting the commentstring based on the cursor location in a file. observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 75
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2016
- days_rel: n/a
- days_push: 151
- n_releases_24m: 0
Adoption not part of the score
1303 stars · 48 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Neovim plugin that sets the commentstring option dynamically based on the cursor location using tree-sitter queries. It handles files with embedded languages, such as Vue files with multiple sections, and integrates with commenting plugins like Comment.nvim.
Use cases
- comment code correctly in Vue files with mixed JS and HTML sections
- set commentstring based on cursor location in embedded languages
- make vim-commentary work with JSX and embedded languages
- support tree-sitter-aware commenting in Neovim
- use different comment styles within a single file
When to avoid
- you only edit single-language files where the default commentstring works
- you don't use tree-sitter parsers in Neovim
- you want a plugin that adds commenting mappings itself
Facets
plugin · maturity active
editor plugin-system parser developer-tools text-editors developer-tools parsers editor-plugin lua cli treesitter neovim-plugin commentstring embedded-languages code-commenting neovim
1 source
- readme: https://github.com/JoosepAlviste/nvim-ts-context-commentstring · fetched 2026-08-28 · 5da6a5fc049a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| JoosepAlviste/nvim-ts-context-commentstring | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="JoosepAlviste/nvim-ts-context-commentstring")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem