Saghen / blink.cmp

Performant, batteries-included completion plugin for Neovim
MIT License
909 stars 51 forks source link

Vim's default keymap 'o' will aways trigger cmp window at a blank new line #228

Open dddddjent opened 4 hours ago

dddddjent commented 4 hours ago

Make sure you have done the following

Bug Description

It always triggers a completion window when I type 'o' to enter the insert mode to add a new line. After going through all the possible options in the trigger section, I still could not disable this behavior. This doesn't happen if I use 'i' or 'a' to enter insert mode. Is this what it is supposed to be? thx

Relevant configuration

keymap = {
        ['<C-e>'] = { 'hide' },
        ['<CR>'] = { 'select_and_accept', 'fallback' },

        ['<C-k>'] = { 'select_prev', 'fallback' },
        ['<C-j>'] = { 'select_next', 'fallback' },

        ['<M-j>'] = { 'snippet_forward', 'fallback' },
        ['<M-k>'] = { 'snippet_backward', 'fallback' },
    },
    accept = { auto_brackets = { enabled = false } },
    trigger = {
        signature_help = { enabled = false },
        completion = {
            show_in_snippet = true,
        }
    },

neovim version

v0.10.0

blink.cmp version: branch, tag, or commit

main

Saghen commented 2 hours ago

That's bizarre, does it happen on all LSPs?

dddddjent commented 2 hours ago

That's bizarre, does it happen on all LSPs? Yes, all servers.