hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
8.14k stars 406 forks source link

Can't add Command key(D-/) bindings in MacOS #2080

Open OnlyWick opened 3 weeks ago

OnlyWick commented 3 weeks ago

That's strange because the mapping was working before. I don't know why it suddenly stopped working.

cmp.setup({
  mapping = {
    -- open / close
    ["<D-/>"] = cmp.mapping({
      i = function()
        if cmp.visible() then
          cmp.abort()
        else
          cmp.complete()
        end
      end,
      c = function()
        if cmp.visible() then
          cmp.close()
        else
          cmp.complete()
        end
      end,
    }),
  },
})
Shougo commented 3 weeks ago

Related issue?

https://github.com/hrsh7th/nvim-cmp/issues/2071

https://github.com/hrsh7th/nvim-cmp/pull/2073

Please test the latest version.

OnlyWick commented 3 weeks ago

Already updated. It suddenly stopped working!!

OnlyWick commented 3 weeks ago

It was working fine before, but now it's not working. I have a habit of updating plugins regularly. Could it be that some plugins have caused this mapping to fail? I used :checkhealth which-key but couldn't detect any conflicts related to D-/.