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

Cmdline rendering issue after latest "rework" commits #609

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

Cmdline rendering issue after latest "rework" commits #609

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

Comments

@ibhagwan
Copy link

Make sure you have done the following

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

Bug Description

After the initial load the completion trigger on the 2nd argument doen't seem to trigger until the 2nd character after which it will trigger with the text missing the first character.

The sequence to trigger the bug:

  • Write the first input in my command Fz (completion triggers nicely

  • Press tab+enter to complete FzfLua

  • Press space+f, nothing happens, no blink completion:
    image

  • After pressing i (already having the f present) the completion triggers and shows iles (without the f):
    image

Note this won't happen if I don't use completion on the first argument, i.e. if I just write FzfLua f blink will trigger correctly and won't have this issue:
image

Relevant configuration

{
  "saghen/blink.cmp",
  enabled = require("utils").USE_BLINK_CMP,
  build = "cargo build --release",
  event = { "InsertEnter", "CmdLineEnter" },
  opts = {
    keymap = {
      ["<CR>"] = { "accept", "fallback" },
      ["<Esc>"] = { "hide", "fallback" },
      -- ["<C-c>"] = { "cancel", "fallback" },
      ["<Up>"] = { "select_prev", "fallback" },
      ["<Down>"] = { "select_next", "fallback" },
      ["<C-e>"] = { "cancel", "show", "fallback" },
      ["<C-p>"] = { "select_prev", "fallback" },
      ["<C-n>"] = { "select_next", "fallback" },
      ["<C-y>"] = { "select_and_accept" },
      ["<C-k>"] = { "show", "show_documentation", "hide_documentation" },
      ["<Tab>"] = { "select_next", "snippet_forward", "fallback" },
      ["<S-Tab>"] = { "select_prev", "snippet_backward", "fallback" },
      ["<S-up>"] = { "scroll_documentation_up", "fallback" },
      ["<S-down>"] = { "scroll_documentation_down", "fallback" },
      cmdline = {
        ["<CR>"] = { "accept", "fallback" },
        ["<Esc>"] = { "hide", "fallback" },
        ["<Tab>"] = { "select_next", "fallback" },
        ["<S-Tab>"] = { "select_prev", "fallback" },
        ["<C-e>"] = { "cancel", "fallback" },
        ["<C-y>"] = { "select_and_accept" },
      }
    },
    completion = {
      -- list = { selection = "manual" },
      list = { selection = "auto_insert" },
      accept = {
        create_undo_point = true,
        auto_brackets = { enabled = true },
      },
      menu = {
        draw = {
          treesitter = { "lsp" },
        }
      },
      documentation = {
        auto_show = true,
        auto_show_delay_ms = 100,
      },
      ghost_text = { enabled = true },
    },
    signature = { enabled = true }
  },
}

neovim version

0.10.2

blink.cmp version: branch, tag, or commit

HEAD

@ibhagwan ibhagwan added the bug Something isn't working label Dec 16, 2024
@Saghen Saghen closed this as completed in 49bff2b Dec 17, 2024
@ibhagwan
Copy link
Author

Ty @Saghen! Can confirm fixed.

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

1 participant