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

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

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

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

An array of completion fields to specify their order.

Plugin default: ["abbr" "kind" "menu"]

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

Default: null

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.

Plugin default:

function(_, vim_item)
  return vim_item
end

Type: null or lua function string

Default: null

Declared by: