plugins.cmp.filetype.<name>.formatting.expandable_indicator

Boolean to show the ~ expandable indicator in cmp’s floating window.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.cmp.filetype.<name>.formatting.fields

An array of completion fields to specify their order.

Type: null or (list of (string or raw lua code))

Default: null

Plugin default:

[
  "abbr"
  "kind"
  "menu"
]

Declared by:

plugins.cmp.filetype.<name>.formatting.format

fun(entry: cmp.Entry, vim_item: vim.CompletedItem): vim.CompletedItem

The function used to customize the appearance of the completion menu. See |complete-items|. This value can also be used to modify the dup property.

NOTE: The vim.CompletedItem can contain the special properties abbr_hl_group, kind_hl_group and menu_hl_group.

Type: null or lua function string

Default: null

Plugin default:

''
  function(_, vim_item)
    return vim_item
  end
''

Declared by: