Saghen/blink.cmp

cmdline not show :help revelant suggestion

Closed this issue · 0 comments

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

When I try :h then space, the suggestion not show about the help commands, it's show mostly a plugins help for example :h m it should show marks or just m

image
image
image
image
image

Relevant configuration

{
    "saghen/blink.cmp",
    build = "cargo build --release",
    event = { "InsertEnter", "CmdlineEnter" },
    opts_extend = {
      "sources.default",
    },
    dependencies = {
      "rafamadriz/friendly-snippets",
      { "saghen/blink.compat", opts = {} },
    },
    ---@module 'blink.cmp'
    ---@type blink.cmp.Config
    opts = {
      appearance = {
        use_nvim_cmp_as_default = true,
        nerd_font_variant = "mono",
      },
      completion = {
        trigger = {
          show_on_accept_on_trigger_character = false,
        },
        accept = {
          auto_brackets = {
            enabled = true,
          },
        },
        menu = {
          border = vim.g.border,
          draw = {
            columns = { { "kind_icon" }, { "label", "label_description", gap = 1 } },
            components = {
              kind_icon = {
                text = function(ctx)
                  local kind_icons = {
                    Text = "󰉿",
                    Method = "m",
                    Function = "󰊕",
                    Constructor = "",
                    Field = "",
                    Variable = "󰆧",
                    Class = "󰌗",
                    Interface = "",
                    Module = "",
                    Property = "",
                    Unit = "",
                    Value = "󰎠",
                    Enum = "",
                    Keyword = "󰌋",
                    Snippet = "",
                    Color = "󰏘",
                    File = "󰈙",
                    Reference = "",
                    Folder = "󰉋",
                    EnumMember = "",
                    Constant = "󰇽",
                    Struct = "",
                    Event = "",
                    Operator = "󰆕",
                    TypeParameter = "󰊄",
                  }
                  return kind_icons[ctx.kind] .. ctx.icon_gap
                end,
              },
            },
          },
        },
        documentation = {
          auto_show = true,
          auto_show_delay_ms = 200,
          window = {
            border = vim.g.border,
          },
        },
      },
      keymap = {
        preset = "default",
        ["<c-j>"] = {
          function(cmp)
            if cmp.snippet_active({ direction = 1 }) then
              return cmp.snippet_forward()
            else
              return on_snippet_forward()
            end
          end,
          "fallback",
        },
        ["<c-k>"] = {
          function(cmp)
            if cmp.snippet_active({ direction = -1 }) then
              return cmp.snippet_backward()
            else
              return on_snippet_backward()
            end
          end,
          "fallback",
        },
      },
      sources = {
        per_filetype = {
          lua = { "lsp", "path", "snippets", "buffer", "lazydev" },
        },
        providers = {
          -- dont show LuaLS require statements when lazydev has items
          lazydev = { name = "LazyDev", module = "lazydev.integrations.blink", fallbacks = { "lsp" } },
        },
      },
    },
  }

neovim version

NVIM v0.10.2

blink.cmp version: branch, tag, or commit

main