aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2023-06-22 19:39:57 +0200
committerGitHub <noreply@github.com>2023-06-22 19:39:57 +0200
commit12c2c16acf7051d364d29cfd71f2542b0943d8e8 (patch)
tree29a2d28785c6d5de37af9eb718b13ebaf73354ad /runtime/lua/vim/lsp/protocol.lua
parent904ad5458de095fec563fb9180fed2c4c87331e1 (diff)
downloadrneovim-12c2c16acf7051d364d29cfd71f2542b0943d8e8.tar.gz
rneovim-12c2c16acf7051d364d29cfd71f2542b0943d8e8.tar.bz2
rneovim-12c2c16acf7051d364d29cfd71f2542b0943d8e8.zip
feat(lsp): opt-in to dynamicRegistration for inlay hints (#24102)
Since https://github.com/neovim/neovim/pull/23681 there is dynamic registration support. We should use that for new features unless there is a good reason to turn it off.
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index b3a7903420..ea38bfe237 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -642,7 +642,7 @@ function protocol.make_client_capabilities()
},
textDocument = {
inlayHint = {
- dynamicRegistration = false,
+ dynamicRegistration = true,
resolveSupport = {
properties = {},
},