# ThePrimeagen/refactoring.nvim

The Refactoring library based off the Refactoring book by Martin Fowler

Repository: https://github.com/ThePrimeagen/refactoring.nvim
Canonical: https://ross.abutalabs.com/products/refactoringnvim
Language: Lua
License: MIT
License Family: permissive
Last push: 2026-08-11T02:14:33+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 1870, "days_push": 23, "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 3644, forks 105 (observed 2026-08-28T04:08:12.889141+00:00)

## What it is
A Neovim plugin providing automated refactoring operations (extract/inline variable and function) and print-debugging helpers, powered by tree-sitter and LSP. It is based on the refactoring patterns from Martin Fowler's Refactoring book.

## Use cases
- extract a selected expression into a variable in neovim
- inline a variable into all its references
- extract a block of code into a function
- insert debug print statements with location context
- clean up debug print statements from code
- refactor code inside neovim without leaving the editor

## When to choose
- you use Neovim 0.12+ and want IDE-style automated refactorings
- you want tree-sitter and LSP powered extract/inline operations for supported languages
- you frequently add and remove print-debugging statements

## When to avoid
- you use an editor other than Neovim
- your language lacks a tree-sitter parser or the required queries
- you need refactoring features beyond extract/inline, such as rename or move method

## Facets
- artifact type: plugin
- maturity: active
- function: developer-tools, parser, documentation
- domain: developer-tools, text-editors
- platform: editor-plugin, cli
- tags: neovim, refactoring, tree-sitter, lsp, print-debugging, code-editing, automation

## Member repositories
- ThePrimeagen/refactoring.nvim (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:12.889141+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:31:45.601851+00:00, confidence not recorded.
  - readme: https://github.com/ThePrimeagen/refactoring.nvim (fetched 2026-08-28T04:08:12.889141+00:00, sha 780ac3a9a197)
- Data as of 2026-08-30T08:39:29.467469+00:00.
