mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
docs(lsp): specify formatting_options type (#35302)
This commit is contained in:
@@ -1425,9 +1425,9 @@ format({opts}) *vim.lsp.buf.format()*
|
|||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {opts} (`table?`) A table with the following fields:
|
• {opts} (`table?`) A table with the following fields:
|
||||||
• {formatting_options}? (`table`) Can be used to specify
|
• {formatting_options}? (`lsp.FormattingOptions`) Can be used
|
||||||
FormattingOptions. Some unspecified options will be
|
to specify FormattingOptions. Some unspecified options will
|
||||||
automatically derived from the current Nvim options. See
|
be automatically derived from the current Nvim options. See
|
||||||
https://microsoft.github.io/language-server-protocol/specification/#formattingOptions
|
https://microsoft.github.io/language-server-protocol/specification/#formattingOptions
|
||||||
• {timeout_ms}? (`integer`, default: `1000`) Time in
|
• {timeout_ms}? (`integer`, default: `1000`) Time in
|
||||||
milliseconds to block for formatting requests. No effect if
|
milliseconds to block for formatting requests. No effect if
|
||||||
|
@@ -516,7 +516,7 @@ end
|
|||||||
--- Can be used to specify FormattingOptions. Some unspecified options will be
|
--- Can be used to specify FormattingOptions. Some unspecified options will be
|
||||||
--- automatically derived from the current Nvim options.
|
--- automatically derived from the current Nvim options.
|
||||||
--- See https://microsoft.github.io/language-server-protocol/specification/#formattingOptions
|
--- See https://microsoft.github.io/language-server-protocol/specification/#formattingOptions
|
||||||
--- @field formatting_options? table
|
--- @field formatting_options? lsp.FormattingOptions
|
||||||
---
|
---
|
||||||
--- Time in milliseconds to block for formatting requests. No effect if async=true.
|
--- Time in milliseconds to block for formatting requests. No effect if async=true.
|
||||||
--- (default: `1000`)
|
--- (default: `1000`)
|
||||||
|
Reference in New Issue
Block a user