neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 9b8a0755390b7eb3ad369f3a0a42eb9aecb8cbe2
parent 73034611c25d16df5e87c8afb2d339a03a91bd0d
Author: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Date:   Fri, 26 Apr 2024 20:26:21 +0200

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


Diffstat:
Mruntime/doc/lsp.txt | 2+-
Mruntime/lua/vim/lsp.lua | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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`.