conform.nvim is a lightweight formatting plugin that integrates external code formatters into Neovim. It calculates minimal text differences instead of blindly replacing the entire buffer after formatting. This approach preserves folds, extmarks, cursor position, and other editor state more reliably. It can also repair responses from LSP formatters that otherwise replace complete buffers. Range formatting works even with many underlying formatters that do not natively provide that capability. The plugin supports format-on-save workflows, sequential or fallback formatters, embedded language formatting, extensive formatter customization, and a simple API modeled after Neovim's native LSP formatting interface.

Features

  • Minimal-diff code formatting
  • Extmark and fold preservation
  • Range formatting support
  • Format-on-save workflows
  • Multiple sequential or fallback formatters
  • Embedded language block formatting

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow conform.nvim

conform.nvim Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Try It Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of conform.nvim!

Additional Project Details

Programming Language

Lua

Related Categories

Lua Browser Extensions and Plugins

Registered

2 days ago