# kylechui/nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.

Repository: https://github.com/kylechui/nvim-surround
Canonical: https://ross.abutalabs.com/products/nvim-surround
Language: Lua
License: MIT
License Family: permissive
Topics: lua, neovim, nvim, surround, ucla-opensource, neovim-plugin
Last push: 2026-06-08T23:21:30+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 82, longevity 100
- inputs: {"age_days": 1587, "days_push": 86, "days_rel": 123, "gap_med": 22, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4283, forks 79 (observed 2026-08-28T04:08:41.243757+00:00)

## What it is
A Neovim plugin written in Lua for adding, changing, and deleting surrounding delimiter pairs like quotes, parentheses, HTML tags, and function calls. It supports dot-repeat, buffer-local mappings, and Tree-sitter/Lua pattern-based surrounds.

## Use cases
- wrap a word in parentheses in neovim
- change surrounding quotes in vim
- delete surrounding html tags
- add function call around text
- replace nearest quotes with brackets
- vim surround plugin for neovim

## When to choose
- you use Neovim 0.8+ and want modern surround functionality
- you need dot-repeatable surround operations
- you want Tree-sitter or Lua pattern-based custom surrounds

## When to avoid
- you use vanilla Vim rather than Neovim
- you prefer built-in mini.surround or other alternatives

## Facets
- artifact type: plugin
- maturity: stable
- function: editor, developer-tools
- domain: text-editors, developer-tools
- platform: lua, cli
- tags: neovim-plugin, surround, text-objects, vim-editing, tree-sitter, neovim

## Member repositories
- kylechui/nvim-surround (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.243757+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:21:57.631970+00:00, confidence not recorded.
  - readme: https://github.com/kylechui/nvim-surround (fetched 2026-08-28T04:08:41.243757+00:00, sha ea77eb6b0008)
- Data as of 2026-08-30T08:39:29.467469+00:00.
