vim.v.completed_item
Fields12
completed_item.word : nil | string
the text that will be inserted, mandatory abbreviation of "word"; when not empty it is used in the menu instead of "word"
completed_item.abbr : nil | string
completed_item.info : nil | string
more information about the item, can be displayed in a preview window
completed_item.kind : nil | string
single letter indicating the type of completion when non-zero case is to be ignored when comparing items to be equal; when omitted zero is used, thus items that only differ in case are added
completed_item.icase : nil | integer
completed_item.equal : nil | integer
when non-zero, always treat this item to be equal when comparing. Which means, "equal=1" disables filtering of this item.
completed_item.dup : nil | integer
when non-zero this match will be added even when an item with the same word is already present.
completed_item.empty : nil | integer
when non-zero this match will be added even when it is an empty string
completed_item.user_data : any
custom data which is associated with the item and available in |v:completed_item|; it can be any type; defaults to an empty string
completed_item.abbr_hlgroup : nil | string
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 abbreviation
completed_item.kind_hlgroup : nil | string
an additional highlight group specifically for setting the highlight attributes of the completion kind. When this field is present, it will override the |hl-PmenuKind| highlight group, allowing for the customization of ctermfg and guifg properties for the completion kind