Skip to content

Autocompletions only after re-entering insert mode with jsonlsΒ #1500

@spacian

Description

@spacian

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

After updating to 1.0.0 from 0.13.1, I experience some weird behavior in particular with jsonls.

Normally, when I open a new json file and start typing a key without quotes, jsonls will provide autocompletions that simply add the quotes. This worked perfectly with 0.13.1:

Image

Image

After updating to 1.0.0, when I initially enter the file and insert mode for the first time, I don't get any autocompletions any more besides $schema, which I don't understand either because I have max_errros at 0, but that happens in both versions and it doesn't bother me much.

Image

After typing more than 3 letters, I get no autocompletions:

Image

Now the funny thing is: If I exit insert mode and re-enter, I get the old suggestions from the point I'm entering:

Image

I am on windows if that makes any difference.

Relevant configuration

{
    sources = {
        default = { "lsp", "path", "buffer" },
    },
    fuzzy = {
        max_typos = function()
            return 0
        end,
    },
    completion = {
        list = {
            selection = {
                preselect = true,
                auto_insert = false,
            },
        },
    },
}

neovim version

NVIM v0.10.4 Build type: Release LuaJIT 2.1.1713484068

blink.cmp version

v1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions