Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OnlyWick opened this issue Nov 4, 2024 · 3 comments · May be fixed by #2081
Open

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

OnlyWick opened this issue Nov 4, 2024 · 3 comments · May be fixed by #2081

Comments

@OnlyWick
Copy link

OnlyWick commented Nov 4, 2024

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
Copy link

Shougo commented Nov 4, 2024

Related issue?

#2071

#2073

Please test the latest version.

@OnlyWick
Copy link
Author

OnlyWick commented Nov 4, 2024

Already updated. It suddenly stopped working!!

@OnlyWick
Copy link
Author

OnlyWick commented Nov 4, 2024

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-/.

@OnlyWick OnlyWick linked a pull request Nov 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants