neovim

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

commit 5eee633c97055fc8c7617f2914835f2860b92d9c
parent 6a264e08974bcb1b91f891eb65ef374f350d2827
Author: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Date:   Tue, 14 May 2024 19:38:22 +0200

fix(lsp): don't start additional client if attach failed (#28744)

If a client for a server was already running and lsp.start was called in
an unloaded buffer it started another client instead of bailing out.
Diffstat:
Mruntime/lua/vim/lsp.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua @@ -251,6 +251,8 @@ function lsp.start(config, opts) if reuse_client(client, config) then if lsp.buf_attach_client(bufnr, client.id) then return client.id + else + return nil end end end