diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/conform.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/conform.txt b/doc/conform.txt index ad2c736..ed1241f 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -120,6 +120,8 @@ format({opts}, {callback}): boolean *conform.forma {async} `nil|boolean` If true the method won't block. Defaults to false. If the buffer is modified before the formatter completes, the formatting will be discarded. + {dry_run} `nil|boolean` If true don't apply formatting changes to + the buffer {formatters} `nil|string[]` List of formatters to run. Defaults to all formatters for the buffer filetype. {lsp_fallback} `nil|boolean|"always"` Attempt LSP formatting if no @@ -137,7 +139,8 @@ format({opts}, {callback}): boolean *conform.forma lsp_fallback = true {filter} `nil|fun(client: table): boolean` Passed to |vim.lsp.buf.format| when lsp_fallback = true - {callback} `nil|fun(err: nil|string)` Called once formatting has completed + {callback} `nil|fun(err: nil|string, did_edit: nil|boolean)` Called once + formatting has completed Returns: `boolean` True if any formatters were attempted |