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.
This commit is contained in:
Maria José Solano
2025-03-10 09:20:27 -07:00
committed by GitHub
parent 67c39f5eca
commit 3b0fe2659e
5 changed files with 113 additions and 13 deletions

View File

@@ -476,9 +476,7 @@ function protocol.make_client_capabilities()
'data',
},
},
-- TODO(tjdevries): Implement this
contextSupport = false,
contextSupport = true,
},
declaration = {
linkSupport = true,