From 0b3d25969e2da2f5de90cc02ccd6446aa68dd895 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Sat, 13 Jul 2024 14:28:18 -0700 Subject: feat: format parameter to only run the first available formatter --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index 9b42903..f5b4258 100644 --- a/README.md +++ b/README.md @@ -609,6 +609,7 @@ Format a buffer | | | > `"prefer"` | use only LSP formatting when available | | | | > `"first"` | LSP formatting is used when available and then other formatters | | | | > `"last"` | other formatters are used then LSP formatting when available | +| | stop_after_first | `nil\|boolean` | Only run the first available formatter in the list. Defaults to false. | | | quiet | `nil\|boolean` | Don't show any notifications for warnings or failures. Defaults to false. | | | range | `nil\|conform.Range` | Range to format. Table must contain `start` and `end` keys with {row, col} tuples using (1,0) indexing. Defaults to current selection in visual mode | | | id | `nil\|integer` | Passed to vim.lsp.buf.format when using LSP formatting | -- cgit v1.2.3-70-g09d2