aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-10 11:33:54 +0800
committerGitHub <noreply@github.com>2024-10-10 11:33:54 +0800
commit112139ea9b32c593752b862cace32ba5dc87ef2c (patch)
tree317715f7435d6fb0e331a2a803b0f4c6a7b42052 /runtime
parentcd8e15e3373dc9544d582640f043d3dee83a953d (diff)
parent9612b3a9053ae2dfe5a4321a5dd0af249c281543 (diff)
downloadrneovim-112139ea9b32c593752b862cace32ba5dc87ef2c.tar.gz
rneovim-112139ea9b32c593752b862cace32ba5dc87ef2c.tar.bz2
rneovim-112139ea9b32c593752b862cace32ba5dc87ef2c.zip
Merge pull request #30742 from zeertzjq/vim-9.1.0771
vim-patch:9.1.{0771,0772}
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/insert.txt4
-rw-r--r--runtime/lua/vim/lsp/completion.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt
index d7cbb7c78e..27b28624f8 100644
--- a/runtime/doc/insert.txt
+++ b/runtime/doc/insert.txt
@@ -1177,12 +1177,12 @@ items:
user_data custom data which is associated with the item and
available in |v:completed_item|; it can be any type;
defaults to an empty string
- hl_group an additional highlight group whose attributes are
+ abbr_hlgroup an additional highlight group whose attributes are
combined with |hl-PmenuSel| and |hl-Pmenu| or
|hl-PmenuMatchSel| and |hl-PmenuMatch| highlight
attributes in the popup menu to apply cterm and gui
properties (with higher priority) like strikethrough
- to the completion items
+ to the completion items abbreviation
kind_hlgroup an additional highlight group specifically for setting
the highlight attributes of the completion kind. When
this field is present, it will override the
diff --git a/runtime/lua/vim/lsp/completion.lua b/runtime/lua/vim/lsp/completion.lua
index 71ea2df100..e74f993356 100644
--- a/runtime/lua/vim/lsp/completion.lua
+++ b/runtime/lua/vim/lsp/completion.lua
@@ -272,7 +272,7 @@ function M._lsp_to_complete_items(result, prefix, client_id)
icase = 1,
dup = 1,
empty = 1,
- hl_group = hl_group,
+ abbr_hlgroup = hl_group,
user_data = {
nvim = {
lsp = {