Skip to content

bug: cmdline popupmenu completions (cmp backend) stop working after the first time #958

@druskus20

Description

@druskus20

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.1

Operating system/version

Linux, Ubuntu

Describe the bug

Using the "cmp" backend for the popupmenu only works the first time, in subsequent attempts it simply does not show up.

2024-09-29.18-09-24.mp4
  {
    "folke/noice.nvim",
    opts = {
      cmdline = {
        view = "cmdline",
        enabled = true,
      },
      messages = {
        enabled = true,
      },
      
      popupmenu = {
        enabled = true,
        backend = "cmp"
      }
    },

I am also using LazyVim (somewhat heavily modified), but I was able to reproduce - see bellow

Steps To Reproduce

  1. Type a command and press TAB
  2. It should work
  3. Press ESC to exit (or choose a command)
  4. Repeat, type a command, this time TAB does nothing.

Expected Behavior

The completion menu opens again, just like it does with the nui backend

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "hrsh7th/nvim-cmp", opts = {} },
    { "folke/noice.nvim", opts = {

      cmdline = {
        view = "cmdline",
        enabled = true,
      },
      messages = {
        enabled = true,
      },

      popupmenu = {
        enabled = true,

        backend = "cmp" 
       
      }
    } 
  },
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThis issue or PR has been inactive for a while

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions