Format a file
nvim_formatApply Neovim's configured formatter to a whole file or line range, then save.
Instructions
Format a whole file or a line range with the formatter Neovim is configured to use, then save it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| wait_ms | No | Format timeout | |
| end_line | No | Range end, inclusive | |
| start_line | No | Range start, 1-based |