Skip to content

cmp dialog quits when inserting the selection #16

Description

@shauryagoel

I am facing this issue currently with neovim 0.10.1 and with latest commits of nvim-cmp and this plugin-

Screen.Recording.2024-08-18.at.1.18.30.PM.mov

As can be seen in the video, I first type cmp, then, press <C-n> to go to the next selection. However, the cmp dialog box shows only a single option (the second item in the original popup).
In the second line, I press Down arrow key after typing cmp, and then, the dialog box works as expected.
This does not happen for other completion sources.

Relevant config-

          ["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
          ["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
          ["<Down>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
          ["<Up>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }),

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions