Skip to content

cmp setup comes with a warning on the line that sets: cmp.mapping.complete() #95

Description

@fernandocanizo

Describe the bug
cmp setup comes with a warning on the line that sets: cmp.mapping.complete()

To Reproduce
Steps to reproduce the behavior:

  1. Kickstart a clean Neovim configuration as explained in the README
  2. Use ]d to go to the warning or open the quickfix window with <leader>q

Desktop (please complete the following information):

  • OS: Archlinux
  • Terminal: urxvt

** Neovim Version **

  • v0.8.1

Warning says

init.lua|397 col 21-43 warning| This function requires 1 argument(s) but instead it is receiving 0.

Help for the function shows an example to avoid completion in a specific circumstance, but doesn't explain the parameters. There's no help for cmp.ConfigSchema nor cmp.ContextReason.

Putting an empty table fixes the warning, but I don't know if that breaks some functionality:

['<C-Space>'] = cmp.mapping.complete({}),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions