docs(lsp): specify formatting_options type (#35302)

This commit is contained in:
Riley Bruins
2025-08-11 11:36:35 -07:00
committed by GitHub
parent e94d8f03b9
commit 09f2c8d8ed
2 changed files with 4 additions and 4 deletions

View File

@@ -1425,9 +1425,9 @@ format({opts}) *vim.lsp.buf.format()*
Parameters: ~
• {opts} (`table?`) A table with the following fields:
• {formatting_options}? (`table`) Can be used to specify
FormattingOptions. Some unspecified options will be
automatically derived from the current Nvim options. See
• {formatting_options}? (`lsp.FormattingOptions`) Can be used
to specify FormattingOptions. Some unspecified options will
be automatically derived from the current Nvim options. See
https://microsoft.github.io/language-server-protocol/specification/#formattingOptions
• {timeout_ms}? (`integer`, default: `1000`) Time in
milliseconds to block for formatting requests. No effect if