# mhartington/formatter.nvim

Repository: https://github.com/mhartington/formatter.nvim
Canonical: https://ross.abutalabs.com/products/formatternvim
Language: Lua
License: MIT
License Family: permissive
Last push: 2025-05-29T22:48:52+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 24, release rhythm 35, longevity 100
- inputs: {"age_days": 2179, "days_push": 461, "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 1452, forks 145 (observed 2026-08-28T04:04:46.473329+00:00)

## What it is
A format runner plugin for Neovim written in Lua that executes external formatters asynchronously on buffers. It provides opt-in default formatter configurations per filetype, conditional formatting, and before/after hooks.

## Use cases
- format code on save in neovim
- run stylua or prettier from neovim
- remove trailing whitespace across filetypes
- set up per-filetype formatter configurations
- asynchronous code formatting in neovim
- conditionally skip formatting for certain files

## When to choose
- you use Neovim and want a Lua-native, configurable formatting runner
- you need fine-grained control over which formatters run per filetype
- you want asynchronous formatting with buffer locking to avoid race conditions

## When to avoid
- you use plain Vim rather than Neovim
- you prefer an all-in-one LSP-based formatting setup with no external plugin
- you need an IDE with built-in formatting

## Facets
- artifact type: plugin
- maturity: active
- function: formatter, developer-tools, editor
- domain: developer-tools, text-editors
- platform: editor-plugin, cross-platform
- tags: neovim, code-formatting, lua, async

## Member repositories
- mhartington/formatter.nvim (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:46.473329+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:35:48.883243+00:00, confidence not recorded.
  - readme: https://github.com/mhartington/formatter.nvim (fetched 2026-08-28T04:04:46.473329+00:00, sha fe46005b37a4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
