diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2024-06-17 22:14:21 -0400 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2024-06-17 22:14:21 -0400 |
commit | 0d12c3781384d63909431297ed1a0f383008bb8f (patch) | |
tree | 1c4537f151f2fd7a5ca40d95fe0cc8c10f9f5c4e /doc | |
parent | 9228b2ff4efd58b6e081defec643bf887ebadff6 (diff) |
doc: format_on_save/format_after_save can return nil
Diffstat (limited to 'doc')
-rw-r--r-- | doc/conform.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/conform.txt b/doc/conform.txt index 8463ac4..a3d3c2e 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -119,11 +119,11 @@ setup({opts}) *conform.setu {opts} `nil|conform.setupOpts` {formatters_by_ft} `nil|table<string, conform.FiletypeFormatter>` Map of filetype to formatters - {format_on_save} `nil|conform.FormatOpts|fun(bufnr: integer): conform.FormatOpts` I + {format_on_save} `nil|conform.FormatOpts|fun(bufnr: integer): nil|conform.FormatOpts` I f this is set, Conform will run the formatter on save. It will pass the table to conform.format(). This can also be a function that returns the table. - {format_after_save} `nil|conform.FormatOpts|fun(bufnr: integer): conform.FormatOpts` I + {format_after_save} `nil|conform.FormatOpts|fun(bufnr: integer): nil|conform.FormatOpts` I f this is set, Conform will run the formatter asynchronously after save. It will pass the table to conform.format(). This can also be a function |