Skip to content

Commit 29537db

Browse files
committed
docs(setup): update opts.formatters_by_ft type and description
1 parent 729a845 commit 29537db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ require("conform").formatters.my_formatter = {
622622
| Param | Type | Desc |
623623
| --------------------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
624624
| opts | `nil\|conform.setupOpts` | |
625-
| >formatters_by_ft | `nil\|table<string, conform.FiletypeFormatter>` | Map of filetype to formatters |
625+
| >formatters_by_ft | `nil\|table<string\|string[], conform.FiletypeFormatter>` | Map of filetype to formatters. It supports tables as keys (only works within the setup function). |
626626
| >format_on_save | `nil\|conform.FormatOpts\|fun(bufnr: integer): nil\|conform.FormatOpts` | If 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. |
627627
| >default_format_opts | `nil\|conform.DefaultFormatOpts` | The default options to use when calling conform.format() |
628628
| >>timeout_ms | `nil\|integer` | Time in milliseconds to block for formatting. Defaults to 1000. No effect if async = true. |

0 commit comments

Comments
 (0)