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 not being refreshed when using auto_insert and then continuing to type #937

Closed
2 tasks done
mehalter opened this issue Jan 7, 2025 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working trigger Module which decides when to show windows

Comments

@mehalter
Copy link

mehalter commented Jan 7, 2025

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

When using auto_insert it appears the completion is not being re-ran when immediately typing after navigating the list. It is expecting something to be explicitly selected even though the completion is already automatically inserted. This is particularly apparent when interacting with the path source for selecting files.

Here is a recording: https://asciinema.org/a/tQ6QfJOnlve9CztiagRTD5ixb

Here is a minimal configuration that replicates the issue and was used for the above recording:

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 = {
    {
      "Saghen/blink.cmp",
      build = "cargo build --release",
      opts = {
        completion = {
          list = {
            selection = {
              preselect = false,
              auto_insert = true,
            },
          },
        },
      },
    },
  },
}

Relevant configuration

completion = {
  list = {
    selection = {
      preselect = false,
      auto_insert = true,
    },
  },
}

neovim version

NVIM v0.10.2

blink.cmp version

main, 275d407

@mehalter mehalter added the bug Something isn't working label Jan 7, 2025
@Saghen Saghen closed this as completed in 0f8de3a Jan 7, 2025
@Saghen Saghen added the trigger Module which decides when to show windows label Jan 7, 2025
@Saghen
Copy link
Owner

Saghen commented Jan 7, 2025

You're finding some mind numbing issues to solve 😄 Thanks for all the testing!

@mehalter
Copy link
Author

mehalter commented Jan 7, 2025

Thank YOU for all the fixes! Absolute monster! 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working trigger Module which decides when to show windows
Projects
None yet
Development

No branches or pull requests

2 participants