CLI: Add format subcommand #128

Closed
opened 2026-03-26 20:21:54 +00:00 by yochem · 1 comment
yochem commented 2026-03-26 20:21:54 +00:00

Problem

I'd like to run the formatter from the CLI, which doesn't seem possible currently looking at the online docs and vimdoc-language-server -h.

Proposed Solution

vimdoc-language-server format <path> would format <path> or all vimdoc files in <path>.

Alternatives Considered

nvim *.txt +'bufdo lua vim.lsp.buf.format()' but that doesn't really work well

### Problem I'd like to run the formatter from the CLI, which doesn't seem possible currently looking at the online docs and `vimdoc-language-server -h`. ### Proposed Solution `vimdoc-language-server format <path>` would format `<path>` or all vimdoc files in `<path>`. ### Alternatives Considered `nvim *.txt +'bufdo lua vim.lsp.buf.format()'` but that doesn't really work well
barrettruth commented 2026-04-04 16:58:41 +00:00

this was just added, thanks for the issue actually.

v0.1.2 just dropped with table support also

this was just added, thanks for the issue actually. v0.1.2 just dropped with table support also
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/vimdoc-language-server#128
No description provided.