From 597ecf751603cde2d5f58021d503ae20a12eb2f2 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 12 Feb 2024 10:18:42 +0000 Subject: [PATCH] fix(lsp): re-add client.commands and mark private --- runtime/lua/vim/lsp/client.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/lua/vim/lsp/client.lua b/runtime/lua/vim/lsp/client.lua index 58db4387b6..a279be55e9 100644 --- a/runtime/lua/vim/lsp/client.lua +++ b/runtime/lua/vim/lsp/client.lua @@ -79,6 +79,7 @@ local validate = vim.validate --- Track this so that we can escalate automatically if we've already tried a --- graceful shutdown --- @field private _graceful_shutdown_failed true? +--- @field private commands table --- --- @field dynamic_capabilities lsp.DynamicCapabilities --- @@ -270,6 +271,7 @@ function Client.start(config) attached_buffers = {}, server_capabilities = {}, dynamic_capabilities = vim.lsp._dynamic.new(id), + commands = config.commands, -- Remove in Nvim 0.11 --- Contains $/progress report messages. --- They have the format {token: integer|string, value: any}