aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2025-03-10 09:20:27 -0700
committerGitHub <noreply@github.com>2025-03-10 09:20:27 -0700
commit3b0fe2659e74276e995655d1f8954b48005292e6 (patch)
tree2468cf6b51d31ac239ad9330de3486a60265a3a3 /runtime/lua/vim/lsp/protocol.lua
parent67c39f5ecae0edc3777b2db0f7e637cafa097d05 (diff)
downloadrneovim-3b0fe2659e74276e995655d1f8954b48005292e6.tar.gz
rneovim-3b0fe2659e74276e995655d1f8954b48005292e6.tar.bz2
rneovim-3b0fe2659e74276e995655d1f8954b48005292e6.zip
feat(lsp): support completion context #32793
Problem: vim.lsp.completion with "autotrigger" enabled, does not send completion context, even though it has all the necessary info. Solution: Include the context for "autotrigger". trigger() also optionally accepts context when manually invoked.
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index feff9adbd0..ececc41cee 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -476,9 +476,7 @@ function protocol.make_client_capabilities()
'data',
},
},
-
- -- TODO(tjdevries): Implement this
- contextSupport = false,
+ contextSupport = true,
},
declaration = {
linkSupport = true,