Skip to content

{ "select_accept_and_enter", "fallback" } Does not trigger abbreviations in cmdline #2263

@pedro757

Description

@pedro757

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

As you can see in my configuration, I set <C-l> to be select_accept_and_enter but it doesn't trigger abbreviations when no results found.

screenrecording-2025-11-19_08-42-26.mp4

This video shows that puhs should be transformed into push when <C-l> but it doesn't.

On the other hand pressing Enter works as expected, turning puhs into push as I specified in the cnoreabbrev

I believe this is a regression, I don't remember having those issues before.

Relevant configuration

cnoreabbrev puhs push




  {
    "saghen/blink.cmp",
    dependencies = { "rafamadriz/friendly-snippets" },
    version = "1.*",
    -- build = "cargo build --release",
    opts = {
      cmdline = {
        keymap = {
          ["<C-j>"] = { "select_next", "fallback" },
          ["<C-k>"] = { "select_prev", "fallback" },
          ["<C-x>"] = { "hide", "fallback" },
          ["<C-l>"] = { "select_accept_and_enter", "fallback" },
          ["<C-e>"] = { "accept", "fallback" },
          ["<down>"] = { "select_next", "fallback" },
          ["<up>"] = { "select_prev", "fallback" },
        },
        completion = {
          list = {
            selection = {
              preselect = true,
              auto_insert = true,
            },
          },
          menu = {
            auto_show = true,
          },
        },
      },
      keymap = {
        preset = "default",
        ["<C-x>"] = { "hide", "fallback" },
        ["<C-j>"] = { "select_next", "fallback" },
        ["<C-k>"] = { "select_prev", "fallback" },
        ["<C-l>"] = { "select_and_accept", "fallback" },
        ["<C-e>"] = {},
        ["<C-n>"] = {},
        ["<C-p>"] = {},
      },

      appearance = {
        nerd_font_variant = "mono",
      },
      completion = {
        documentation = { auto_show = true, auto_show_delay_ms = 500 },
      },
      sources = {
        default = { "lazydev", "lsp", "path", "snippets", "buffer" },
        providers = {
          lazydev = {
            name = "LazyDev",
            module = "lazydev.integrations.blink",
            score_offset = 100,
          },
        },
      },

      fuzzy = { implementation = "prefer_rust_with_warning" },
    },
    opts_extend = { "sources.default" },
  },

neovim version

v0.12.0-dev-1651+g4998b8d7b5

blink.cmp version

v1.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkeymap

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions