fix(lsp): change `silent` in lsp.start.Opts to optional (#28524)

This commit is contained in:
Mathias Fußenegger 2024-04-26 20:26:21 +02:00 committed by GitHub
parent 73034611c2
commit 9b8a075539
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -869,7 +869,7 @@ start({config}, {opts}) *vim.lsp.start()*
re-uses a client if name and root_dir matches.
• {bufnr} (`integer`) Buffer handle to attach to if starting
or re-using a client (0 for current).
• {silent} (`boolean`) Suppress error reporting if the LSP
• {silent}? (`boolean`) Suppress error reporting if the LSP
server fails to start (default false).
Return: ~

View File

@ -201,7 +201,7 @@ end
--- @field bufnr integer
---
--- Suppress error reporting if the LSP server fails to start (default false).
--- @field silent boolean
--- @field silent? boolean
--- Create a new LSP client and start a language server or reuses an already
--- running client if one is found matching `name` and `root_dir`.