Skip to content

Path source should show when only enabled provider #966

@jemag

Description

@jemag

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

The following keymap will work with most default sources, but not the path one

    ['<C-b>'] = { function(cmp) cmp.show({ providers = { 'path' } }) end },

I am guessing this might be related to the trigger characters that the path provider possesses.

However, in that case, since we are doing an explicit manual trigger of the provider, this should work and not be reliant on any trigger character.

Relevant configuration

require("blink-cmp").setup({
  keymap = {
    ['<C-b>'] = { function(cmp) cmp.show({ providers = { 'path' } }) end },
  },
  completion = {
    documentation = {
      -- Controls whether the documentation window will automatically show when selecting a completion item
      auto_show = true,
      auto_show_delay_ms = 500,
      update_delay_ms = 50,
    },
  },
  sources = {
    -- add lazydev to your completion providers
    default = { "lazydev", "lsp", "path", "snippets", "buffer" },
  },
})

neovim version

NVIM v0.11.0-dev-1471+g64b0e6582a

blink.cmp version

0.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    LSPRelated to a specific LSPbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions