Add formatter = false opt-out for autoformat on save#24
Merged
Mathijs-Bakker merged 28 commits intomasterfrom Mar 30, 2026
Merged
Add formatter = false opt-out for autoformat on save#24Mathijs-Bakker merged 28 commits intomasterfrom
formatter = false opt-out for autoformat on save#24Mathijs-Bakker merged 28 commits intomasterfrom
Conversation
Alternative with more detail: refactor(core): harden formatting and command registration - replace shell-based GDScript formatting with vim.system - read formatter config at execution time instead of module load - normalize editor server and reconnect command setup - make autocmd registration idempotent with augroups
Alternative with more detail: refactor(formatting): support argv formatter commands - document formatter_cmd as string or argv list - align health checks with list-style formatter commands - recommend argv usage for formatter flags in README and help docs
- extract docs config/url helpers into a common module - extract fetch/cache/index lookup into a dedicated fetch module - extract rst-to-markdown parsing into a renderer-neutral parser module - extract float/browser/buffer rendering into a render module - preserve reload/reset behavior across split docs state
- run the Neovim headless test suite on pull requests and pushes to master - install Neovim 0.11.4 in CI - document the CI-backed test command in README and CONTRIBUTING
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change adds an explicit way to disable formatter execution on save by setting:
formatter = falsePreviously, falsey values like nil or "" still fell back to gdformat, which caused warning notifications on every save for users who do not want plugin-managed formatting.
Changes
formatter = falseas an explicit opt-out in the formatting codepathformatter = falsein the README and help docsResult
Users who do not use gdformat can now disable autoformat-on-save cleanly without repeated error messages.
Testing
nvim --headless -u NONE -c "luafile tests/run.lua" -c "qa!"Related Issues
Closes: #23