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 not hide when input <space> #1200

Open
2 tasks done
jqhr opened this issue Feb 11, 2025 · 0 comments
Open
2 tasks done

Completion menu not hide when input <space> #1200

jqhr opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jqhr
Copy link

jqhr commented Feb 11, 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

Completion menu not hide when input

20250211_153840.mp4

Relevant configuration

keymap = {
    preset = 'super-tab',
    ['<C-n>'] = { 'show', 'select_next' },
    ['<C-space>'] = {},
    cmdline = {
      preset = "enter",
      ['<tab>'] = {"show","select_next","fallback"},
      ['<s-tab>'] = {"select_prev", "fallback"}
    }
  },
  completion = {
    trigger = {
      show_on_keyword = true,
      show_in_snippet = false
    },
    menu = {
      auto_show = false,
    },
    list = {
      selection = {
        preselect = function(ctx)
          if ctx.mode == 'cmdline' then
            return false
          end
          return not require('blink.cmp').snippet_active({ direction = 1 })
        end,
        auto_insert = function(ctx) return ctx.mode == 'cmdline' end
      }
    }
  }

neovim version

0.10.4

blink.cmp version

main

@jqhr jqhr added the bug Something isn't working label Feb 11, 2025
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