From 3b0fe2659e74276e995655d1f8954b48005292e6 Mon Sep 17 00:00:00 2001 From: Maria José Solano Date: Mon, 10 Mar 2025 09:20:27 -0700 Subject: 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. --- runtime/lua/vim/lsp/protocol.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'runtime/lua/vim/lsp/protocol.lua') 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, -- cgit