Skip to content

Error on Start Up: attempt to index field 'super-tab' (a nil value) #1920

Description

@karimdjemai

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

Hi!
My config is based on LazyVim.
When I start up, I get the following error:

Failed to run `config` for blink.cmp

...lazy/LazyVim/lua/lazyvim/plugins/extras/coding/blink.lua:112: attempt to index field 'super-tab' (a nil value)

# stacktrace:
  - /LazyVim/lua/lazyvim/plugins/extras/coding/blink.lua:112 _in_ **config**
  - /LazyVim/lua/lazyvim/plugins/lsp/init.lua:181 _in_ **config**
  - vim/_editor.lua:0 _in_ **cmd**
  - /persistence.nvim/lua/persistence/init.lua:88 _in_ **load**
  - /LazyVim/lua/lazyvim/plugins/util.lua:49

It seems to not find the super tab preset anymore.
Anyone an idea whats going on or how to further debug this?
Thanks in advance!

Relevant configuration

return {
  "saghen/blink.cmp",
  opts = {
    keymap = {
      preset = "super-tab",
    },
    -- README also notes: 'you may want to set `completion.trigger.show_in_snippet = false`
    -- or use `completion.list.selection = "manual" | "auto_insert"`'
    completion = {
      list = {
        selection = "manual",
      },
    },
  },
}

neovim version

NVIM v0.12.0-dev-2159+g5cdfa3324f-Homebrew Build type: Release LuaJIT 2.1.1741730670 Run "nvim -V1 -v" for more info

blink.cmp version

latest

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