aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2026-03-22 07:07:26 +0800
committerGitHub <noreply@github.com>2026-03-21 19:07:26 -0400
commitcc518cf9bab090253b377a87346bdcdead994086 (patch)
tree37d4d3ae21b832798bef07faee6f6c65b4697d06 /runtime/lua/vim/lsp/protocol.lua
parent2069be281c723a8a8607d395dbfabd9cd30f4b15 (diff)
downloadrneovim-cc518cf9bab090253b377a87346bdcdead994086.tar.gz
rneovim-cc518cf9bab090253b377a87346bdcdead994086.tar.bz2
rneovim-cc518cf9bab090253b377a87346bdcdead994086.zip
feat(lsp): support CompletionItem.labelDetails #38403
Problem: CompletionItem.labelDetails is ignored, losing function signatures and module info in the completion menu. Solution: Append labelDetails.detail to abbr and use labelDetails.description for menu with fallback to item.detail. https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItemLabelDetails
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index 19165f6561..aa9484d10e 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -488,6 +488,7 @@ function protocol.make_client_capabilities()
tagSupport = {
valueSet = get_value_set(constants.CompletionTag),
},
+ labelDetailsSupport = true,
},
completionItemKind = {
valueSet = get_value_set(constants.CompletionItemKind),