feat: add format subcommand for CLI formatting #127
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/vimdoc-language-server!127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/format-subcommand"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The formatter is only accessible via LSP
textDocument/formatting, requiring a running editor. There's no way to format vimdoc files from the CLI for CI pipelines, pre-commit hooks, or batch operations.Solution
Add a
formatsubcommand mirroring the existingcheckpattern.vimdoc-language-server format doc/formats files in-place;--checkexits 1 if any file would change (for CI). Directories are globbed for*.txtfiles. Global--line-width,--reflow, and--normalize-spacingflags apply. Bothformatandcheckare now documented in the README under a new CLI section.The latest updates on your projects. Learn more about Vercel for GitHub.