# Wansmer/treesj

Neovim plugin for splitting/joining blocks of code

Repository: https://github.com/Wansmer/treesj
Canonical: https://ross.abutalabs.com/products/treesj
Language: Lua
License: MIT
License Family: permissive
Topics: neovim, neovim-plugin, nvim-lua, refactoring, splitjoin, treesitter
Last push: 2026-05-28T14:14:24+00:00

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

## Adoption (not part of the score)
Stars 1340, forks 49 (observed 2026-08-28T04:04:25.987972+00:00)

## What it is
TreeSJ is a Neovim plugin written in Lua that splits and joins blocks of code such as arrays, objects, and dictionaries using Tree-Sitter. It works from anywhere in a block, supports recursive and nested-language operations, toggle mode, and dot-repeat.

## Use cases
- split a multi-element array onto separate lines in Neovim
- join an object or dictionary back into a single line
- toggle code block formatting with one keypress
- recursively expand or collapse nested code blocks
- refactor code layout without moving the cursor to specific positions

## When to choose
- you use Neovim 0.9+ with Tree-Sitter and want splitjoin-style refactoring
- you need language-aware splitting/joining across nested languages
- you want toggle, recursive, and dot-repeat support in one plugin

## When to avoid
- you don't use Neovim or prefer editor-agnostic tools
- you need formatting beyond split/join, such as full code style enforcement

## Facets
- artifact type: plugin
- maturity: active
- function: editor, developer-tools
- domain: developer-tools, text-editors
- platform: editor-plugin, cli
- tags: neovim, treesitter, splitjoin, code-formatting, lua

## Member repositories
- Wansmer/treesj (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.987972+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-30T04:43:51.778315+00:00, confidence not recorded.
  - readme: https://github.com/Wansmer/treesj (fetched 2026-08-28T04:04:25.987972+00:00, sha 56b9facb9238)
- Data as of 2026-08-30T08:39:29.467469+00:00.
