diff options
| author | glepnir <glephunter@gmail.com> | 2026-08-24 14:35:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-24 14:35:25 +0800 |
| commit | 92d5531f96fef519c4427b369aa5cd2bbff44cf6 (patch) | |
| tree | b4dfe358429117d53efb6ff6a277402881250ea0 /src/nvim/eval.lua | |
| parent | 70958dae75efc797fe85b29df11fb2ea2ebf9401 (diff) | |
| download | rneovim-92d5531f96fef519c4427b369aa5cd2bbff44cf6.tar.gz rneovim-92d5531f96fef519c4427b369aa5cd2bbff44cf6.tar.bz2 rneovim-92d5531f96fef519c4427b369aa5cd2bbff44cf6.zip | |
vim-patch:9.2.1001: complete_info() does not report the item highlight groups (#41461)
Problem: complete_info() omits "abbr_hlgroup" and "kind_hlgroup".
Solution: Keep the highlight group ID with the match instead of the
resolved attribute and add both entries to the returned items
(glepnir).
closes: vim/vim#21105
https://github.com/vim/vim/commit/1c32cede0afdc9351d5887e2f25977d4fb964d9f
Diffstat (limited to 'src/nvim/eval.lua')
| -rw-r--r-- | src/nvim/eval.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 04801e8a2d..d034a38ca1 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -1493,10 +1493,13 @@ M.funcs = { the currently selected index item. items List of all completion candidates. Each item is a dictionary containing the entries "word", - "abbr", "menu", "kind", "info" and - "user_data". "equal", "preselect" and - "commit_chars" are included only for items that - set them. + "abbr", "menu", "kind", "info", + "abbr_hlgroup", "kind_hlgroup" and + "user_data". The highlight group entries hold + the name that the item was added with, + or an empty string. + "equal", "preselect" and "commit_chars" are + included only for items that set them. See |complete-items|. matches Same as "items", but only returns items that are matching current query. If both "matches" |