aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2024-04-26 20:26:21 +0200
committerGitHub <noreply@github.com>2024-04-26 20:26:21 +0200
commit9b8a0755390b7eb3ad369f3a0a42eb9aecb8cbe2 (patch)
tree85807a2a1411042bfbe14931c7e6c10820254e11
parent73034611c25d16df5e87c8afb2d339a03a91bd0d (diff)
downloadrneovim-9b8a0755390b7eb3ad369f3a0a42eb9aecb8cbe2.tar.gz
rneovim-9b8a0755390b7eb3ad369f3a0a42eb9aecb8cbe2.tar.bz2
rneovim-9b8a0755390b7eb3ad369f3a0a42eb9aecb8cbe2.zip
fix(lsp): change `silent` in lsp.start.Opts to optional (#28524)
-rw-r--r--runtime/doc/lsp.txt2
-rw-r--r--runtime/lua/vim/lsp.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index b3f60ed41f..5a98d32628 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -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: ~
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index 3f459491f3..c6d6c8a0cd 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -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`.