aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2024-05-28 12:39:30 -0500
committerGitHub <noreply@github.com>2024-05-28 12:39:30 -0500
commit0bdd602bf974fdefc348f47bb7b9057521eb0407 (patch)
tree5bec46754be4714b72e10a8ebe295d9606d0d59d /runtime/lua/vim/lsp/protocol.lua
parent8ba73f0e4cc6c82032a348a1d6c8d794ed150fd7 (diff)
parente6cfcaed184d4ecdc8a8638429e1bd9e1b3251dc (diff)
downloadrneovim-0bdd602bf974fdefc348f47bb7b9057521eb0407.tar.gz
rneovim-0bdd602bf974fdefc348f47bb7b9057521eb0407.tar.bz2
rneovim-0bdd602bf974fdefc348f47bb7b9057521eb0407.zip
Merge pull request #27339 from MariaSolOs/completion
feat(lsp): completion side effects
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index 419c2ff644..8ac4cc794b 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -738,14 +738,16 @@ function protocol.make_client_capabilities()
completion = {
dynamicRegistration = false,
completionItem = {
- -- Until we can actually expand snippet, move cursor and allow for true snippet experience,
- -- this should be disabled out of the box.
- -- However, users can turn this back on if they have a snippet plugin.
- snippetSupport = false,
+ snippetSupport = true,
commitCharactersSupport = false,
preselectSupport = false,
deprecatedSupport = false,
documentationFormat = { constants.MarkupKind.Markdown, constants.MarkupKind.PlainText },
+ resolveSupport = {
+ properties = {
+ 'additionalTextEdits',
+ },
+ },
},
completionItemKind = {
valueSet = get_value_set(constants.CompletionItemKind),