diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2024-04-26 20:26:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 20:26:21 +0200 |
commit | 9b8a0755390b7eb3ad369f3a0a42eb9aecb8cbe2 (patch) | |
tree | 85807a2a1411042bfbe14931c7e6c10820254e11 | |
parent | 73034611c25d16df5e87c8afb2d339a03a91bd0d (diff) | |
download | rneovim-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.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
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`. |