Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdline not show :help revelant suggestion #631

Closed
2 tasks done
nickp-real opened this issue Dec 18, 2024 · 0 comments
Closed
2 tasks done

cmdline not show :help revelant suggestion #631

nickp-real opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nickp-real
Copy link

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

@nickp-real nickp-real added the bug Something isn't working label Dec 18, 2024
@nickp-real nickp-real changed the title cmdline not show :help suggestion cmdline not show :help revelant suggestion Dec 18, 2024
@Saghen Saghen closed this as completed in 02051bf Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant