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

Completion menu does not close with "auto_insert" #415

Closed
2 tasks done
Lun4m opened this issue Dec 1, 2024 · 1 comment
Closed
2 tasks done

Completion menu does not close with "auto_insert" #415

Lun4m opened this issue Dec 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Lun4m
Copy link

Lun4m commented Dec 1, 2024

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

The completion menu stays open after pressing a special character, for example, space or (.
Moreover, if I keep typing with the menu open, the auto inserted text gets trimmed to the only the letters I typed before selecting the item. But this also seems to depend on the character you type (?).

GIF 01-12-2024 19-45-59

Relevant configuration

keymap = {
  ["<C-e>"] = { "hide", "fallback" },
  ["<CR>"] = { "accept", "fallback" },

  ["<Tab>"] = { "select_next", "fallback" },
  ["<S-Tab>"] = { "select_prev", "fallback" },

  ["<C-j>"] = { "snippet_forward", "fallback" },
  ["<C-k>"] = { "snippet_backward", "fallback" },

  ["<C-b>"] = { "scroll_documentation_up", "fallback" },
  ["<C-d>"] = { "scroll_documentation_down", "fallback" },
},

completion = {
  list = {
    selection = "auto_insert",
  },
}

neovim version

NVIM v0.10.1 Build type: Release LuaJIT 2.1.1713484068

blink.cmp version: branch, tag, or commit

1f6a8e2

@Lun4m Lun4m added the bug Something isn't working label Dec 1, 2024
@s-cerevisiae
Copy link

I suspect that the auto inserted text is getting cancelled when completion is triggered for the second time.

@Saghen Saghen closed this as completed in 96ceb56 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants