Cannot get more than 1 line completion in blink.cmp menu in JS/TS files · Issue #560 · zbirenbaum/copilot.lua · GitHub
Skip to content

Cannot get more than 1 line completion in blink.cmp menu in JS/TS files #560

Open

Description

@dseravalli

In both JS and Typescript files, if I open :Copilot panel, I see multi-line suggestions, but I never see them in my cmp list. Does not happen in Python. I was experiencing this both with hrsh7th/nvim-cmp and now with blink.cmp

Nvim v0.11.3
copilot.lua e73fe7c
blink.cmp v1.6.0

JS/TS cmp
Image

JS/TS panel
Image

Python cmp
Image

return {
  "zbirenbaum/copilot.lua",
  cmd = "Copilot",
  event = "InsertEnter",
  config = function()
    require("copilot").setup({
      suggestion = { enabled = false },
      panel = { enabled = false },
    })
  end,
}
return {
  "saghen/blink.cmp",
  dependencies = {
    "rafamadriz/friendly-snippets",
    "brenoprata10/nvim-highlight-colors",
    "zbirenbaum/copilot.lua",
    "fang2hou/blink-copilot",
  },

  version = "1.*",

  opts = {
    keymap = { preset = "super-tab" },

    appearance = {
      nerd_font_variant = "mono",
    },

    completion = {
      documentation = { auto_show = true },
      menu = {
        draw = {
          components = {
            -- customize the drawing of kind icons
            kind_icon = {
              text = function(ctx)
                -- default kind icon
                local icon = ctx.kind_icon
                -- if LSP source, check for color derived from documentation
                if ctx.item.source_name == "LSP" then
                  local color_item =
                    require("nvim-highlight-colors").format(ctx.item.documentation, { kind = ctx.kind })
                  if color_item and color_item.abbr ~= "" then
                    icon = color_item.abbr
                  end
                end
                return icon .. ctx.icon_gap
              end,
              highlight = function(ctx)
                -- default highlight group
                local highlight = "BlinkCmpKind" .. ctx.kind
                -- if LSP source, check for color derived from documentation
                if ctx.item.source_name == "LSP" then
                  local color_item =
                    require("nvim-highlight-colors").format(ctx.item.documentation, { kind = ctx.kind })
                  if color_item and color_item.abbr_hl_group then
                    highlight = color_item.abbr_hl_group
                  end
                end
                return highlight
              end,
            },
          },
        },
      },
    },


    sources = {
      default = { "lsp", "path", "snippets", "buffer", "copilot" },
      providers = {
        copilot = {
          name = "copilot",
          module = "blink-copilot",
          score_offset = 100,
          async = true,
        },
      },
    },

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

Activity

  1. stemps commented on Sep 1, 2025

    @stemps

    I was experiencing the same issue with Python. I saw multiline suggestions in the panel, but only single line suggestions in blink.cmp. I think it might be related to LSP diagnostics issue in the same file. If I start with an empty file with 0 diagnostics issues it works fine. But as soon as I open a file with issues, I only get the first line in blink.cmp, despite seeing multiple lines in the panel.

  2. manpham-saritasa commented on Mar 23, 2026

    @manpham-saritasa

    Same thing happens to me. Somehow it can only suggest one line code for JS/TS (JSX/TSX) files. It works perfectly on other file types (.svelte)

  3. KoinBanks commented on Apr 7, 2026

    @KoinBanks

    I have the same problem in javascript file - but I am using ghost text instead of blink.cmp integration and accept with .

  4. ahaooahaz commented on Jun 25, 2026

    @ahaooahaz

    same issue happen to me when working in golang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions