commit 5785c32f1115833cf69ec9062c5bc8907360aab0
parent 59cf827f99d53ec8dbb90e48a7561c0cb8b8ca6f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 8 Feb 2024 07:34:38 +0800
fix(lsp): set fallback client name properly
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/lua/vim/lsp/client.lua b/runtime/lua/vim/lsp/client.lua
@@ -127,7 +127,7 @@ end
--- @param config lsp.ClientConfig
--- @return lsp.Client
function Client.new(id, rpc, handlers, offset_encoding, config)
- local name = config.name
+ local name = config.name or tostring(id)
--- @class lsp.Client
local self = {