# numToStr/Comment.nvim

:brain: :muscle: // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more

Repository: https://github.com/numToStr/Comment.nvim
Canonical: https://ross.abutalabs.com/products/commentnvim
Language: Lua
License: MIT
License Family: permissive
Topics: neovim, nvim, plugin, neovim-plugin, comment, neovim-lua, comment-plugin, treesitter, hacktoberfest, lua
Last push: 2024-08-19T16:47:28+00:00

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

## Adoption (not part of the score)
Stars 4664, forks 190 (observed 2026-08-28T04:08:56.500384+00:00)

## What it is
Comment.nvim is a smart and powerful commenting plugin for Neovim written in Lua. It supports treesitter, dot repeat, motions, text-objects, and hooks for toggling line and block comments.

## Use cases
- toggle comments on lines and blocks in neovim
- comment code with motions like gcw or gc2j
- comment using treesitter filetypes without manual commentstring config
- repeat comment toggles with the dot operator
- ignore certain lines when commenting via lua regex

## When to choose
- you use Neovim and want fast, configurable commenting
- you want treesitter-aware commenting with dot repeat and motions

## When to avoid
- you use vanilla Vim or another editor without Lua support
- you only need basic commentstring-based commenting built into Neovim

## Facets
- artifact type: plugin
- maturity: stable
- function: editor, developer-tools
- domain: text-editors, developer-tools
- platform: editor-plugin, windows
- tags: neovim, commenting, treesitter, lua, vim-plugin, linux, macos

## Member repositories
- numToStr/Comment.nvim (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:56.500384+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:19:26.106243+00:00, confidence not recorded.
  - readme: https://github.com/numToStr/Comment.nvim (fetched 2026-08-28T04:08:56.500384+00:00, sha c865f27cae36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
