awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
stevearc avatar

stevearc/conform.nvim

0
View on GitHub↗

Conform.nvim

conform.nvim is a Neovim plugin that formats code buffers using external formatters while preserving editor state such as cursor position, folds, and viewport. It supports embedded code block formatting, applying language-specific formatting rules to code blocks inside Markdown and similar documents.

The plugin runs formatters asynchronously via Neovim's job control, keeping the editor responsive during formatting operations. It offers a configurable formatter selection algorithm that picks a formatter based on filetype, buffer-local variables, or custom predicate functions. Users can define formatters through an extensible Lua DSL specifying commands, arguments, and environment overrides. When no explicit formatter is configured, conform.nvim falls back to Neovim's built-in LSP formatting. Formatting changes are applied as computed minimal diffs to preserve cursor position, folds, and viewport.

Formatting can be triggered synchronously or asynchronously with options for timeout, LSP fallback, range selection, and quiet mode. Formatter definitions can be customized per buffer or globally by overriding commands, arguments, environment variables, and inheritance.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Code Formatters - A Neovim plugin that formats code buffers using external formatters with configurable commands and LSP fallback.
  • Formatter Overrides - Lets users override default formatter commands, arguments, and environment per buffer or globally.
  • Selection Algorithms - Provides a configurable algorithm that selects formatters based on file context and user-defined criteria.
  • Runner Customizations - Lets users customize formatter commands, arguments, and environment per buffer or globally in Neovim.
  • Lua Tool Declarations - Ships a Lua-based DSL for declaring how external formatters should be invoked and configured.
  • Editor State Diffs - Applies only minimal diffs to keep cursor, folds, and viewport intact during formatting.
  • Cursor & Fold Preservation - Preserves cursor position, folds, and viewport when applying formatting changes to a buffer.
  • Asynchronous Agent Job Execution - Asynchronously runs external formatters via Neovim job control for non-blocking editor operation.
  • Editor State Preserving Formatters - Applies formatting as minimal diffs to preserve cursor position, folds, and viewport.
  • Formatting Fallbacks - Falls back to LSP formatting when no external formatter is configured for a given file type.
  • Embedded Code Formatters - Formats code snippets embedded within Markdown files using language-specific formatters.
  • Editor State Preservations - Preserves cursor position and folds by applying only minimal formatting diffs.
  • Formatting Configurations - Offers flexible formatting execution with sync/async modes, timeout, LSP fallback, range, and quiet options.
  • Execution Modes - Supports both synchronous and asynchronous formatting with configurable timeout and range selection.
  • Markdown Block Formatting - Formats code blocks within Markdown documents using language-specific formatting rules.
  • Formatter Customizations - Supports overriding default formatter commands, arguments, and environment variables per buffer.
  • Code Formatting - Lightweight formatting engine.
4,925 stars·277 forks·Lua·mit·20 views

Star history

Star history chart for stevearc/conform.nvimStar history chart for stevearc/conform.nvim

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does stevearc/conform.nvim do?

conform.nvim is a Neovim plugin that formats code buffers using external formatters while preserving editor state such as cursor position, folds, and viewport. It supports embedded code block formatting, applying language-specific formatting rules to code blocks inside Markdown and similar documents.

What are the main features of stevearc/conform.nvim?

The main features of stevearc/conform.nvim are: Code Formatters, Formatter Overrides, Selection Algorithms, Runner Customizations, Lua Tool Declarations, Editor State Diffs, Cursor & Fold Preservation, Asynchronous Agent Job Execution.

Which projects share features with stevearc/conform.nvim?

Projects with overlapping indexed features include: rust-lang/rustfmt — rustfmt is a Rust code formatter that operates as a Cargo subcommand, applying consistent formatting to Rust source… david-patrick-chuks/riona-ai-agent — Riona-AI-Agent is an LLM automation agent and browser automation framework designed to execute complex workflows,… antonbabenko/pre-commit-terraform — This project is a set of git pre-commit hooks designed to automate the formatting, linting, and validation of… claude-code-best/claude-code — Claude Code is a command-line interface and multi-agent orchestration framework designed for autonomous software… beautifier/js-beautify — js-beautify is a web language beautifier and rule-based code stylizer designed to standardize the indentation and… beautify-web/js-beautify — js-beautify is a web language beautifier and code formatter designed to standardize the layout and structure of…

Projects sharing features with Conform.nvim

These projects share indexed features with Conform.nvim. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • rust-lang/rustfmtrust-lang avatar

    rust-lang/rustfmt

    6,747View on GitHub↗

    rustfmt is a Rust code formatter that operates as a Cargo subcommand, applying consistent formatting to Rust source files according to official style guidelines. It parses source code into a syntax tree, applies formatting rules to tree nodes, and pretty-prints the result back to text, with support for TOML-driven configuration that allows per-project style customization. The formatter is edition-aware, automatically selecting formatting rules based on the Rust edition specified in the project, and supports a style edition override that decouples formatting rules from the Rust edition used fo

    Rustcodeformatterformatterrust
    View on GitHub↗6,747
  • david-patrick-chuks/riona-ai-agentDavid-patrick-chuks avatar

    David-patrick-chuks/Riona-AI-Agent

    4,223View on GitHub↗

    Riona-AI-Agent is an LLM automation agent and browser automation framework designed to execute complex workflows, train on custom data, and generate AI content. It functions as a social media automation tool for scheduling content, managing multiple profiles, and automating engagement actions across social platforms. The system includes a centralized monitoring dashboard for tracking the live status, runtime summaries, and activity logs of AI agents. It utilizes machine learning models to identify and bypass visual security challenges during automated browsing sessions. The agent's capabilit

    HTML
    View on GitHub↗4,223
  • antonbabenko/pre-commit-terraformantonbabenko avatar

    antonbabenko/pre-commit-terraform

    3,735View on GitHub↗

    This project is a set of git pre-commit hooks designed to automate the formatting, linting, and validation of Terraform configurations. It functions as an infrastructure as code linter, security scanner, cost estimator, and documentation generator to ensure code quality before commits are finalized. The tool distinguishes itself by providing specialized capabilities for infrastructure workflows, such as scanning templates for security vulnerabilities and hardcoded secrets, calculating projected cloud spending against budgets, and automatically extracting module definitions to populate readme

    Shell
    View on GitHub↗3,735
  • beautifier/js-beautifybeautifier avatar

    beautifier/js-beautify

    8,975View on GitHub↗

    js-beautify is a web language beautifier and rule-based code stylizer designed to standardize the indentation and layout of JavaScript, HTML, and CSS. It converts minified or obfuscated source code into a human-readable format to improve maintainability and readability. The system enforces consistent coding styles through global configuration files and programmatic options. It also supports local formatting overrides, allowing users to control behavior for specific sections of a file using embedded comment directives. The project provides capabilities for source code style enforcement and we

    JavaScriptcsshacktoberfesthtml
    View on GitHub↗8,975
  • Compare all 30 related projects→