aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/client.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-02-12 10:18:42 +0000
committerChristian Clason <c.clason@uni-graz.at>2024-02-12 13:18:23 +0100
commit597ecf751603cde2d5f58021d503ae20a12eb2f2 (patch)
tree976cf16a30d89be509458b9c2c554ba09912f243 /runtime/lua/vim/lsp/client.lua
parent6c168c0f4d777d7586b47a05d2539210ce711f1c (diff)
downloadrneovim-597ecf751603cde2d5f58021d503ae20a12eb2f2.tar.gz
rneovim-597ecf751603cde2d5f58021d503ae20a12eb2f2.tar.bz2
rneovim-597ecf751603cde2d5f58021d503ae20a12eb2f2.zip
fix(lsp): re-add client.commands and mark private
Diffstat (limited to 'runtime/lua/vim/lsp/client.lua')
-rw-r--r--runtime/lua/vim/lsp/client.lua2
1 files changed, 2 insertions, 0 deletions
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}