From b8f3ed3903430033f638b17f7455b8fd3d6a85b5 Mon Sep 17 00:00:00 2001 From: Jon Heinritz Date: Wed, 22 May 2024 01:24:14 +0200 Subject: docs: better type definitions for top-level functions (#410) * docs: extract conform.format(opts) into it's own class * docs: extract conform.format_lines(opts) into it's own class * refactor: use new nvim_doc_tools capability to remove duplicated class definition --------- Co-authored-by: Steven Arcangeli --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 66912cb..356dea9 100644 --- a/README.md +++ b/README.md @@ -538,7 +538,7 @@ Format a buffer | Param | Type | Desc | | | -------- | ---------------------------------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| opts | `nil\|table` | | | +| opts | `nil\|conform.FormatOpts` | | | | | timeout_ms | `nil\|integer` | Time in milliseconds to block for formatting. Defaults to 1000. No effect if async = true. | | | bufnr | `nil\|integer` | Format this buffer (default 0) | | | 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. | -- cgit v1.2.3-70-g09d2