Skip to content

Wildcard not substituted properly when using regex in :find command #91

@rqdmap

Description

@rqdmap

I'm using Neovim v0.9.0, with the latest nvim-cmp and cmp-cmdline plugin.

Without cmp-cmdline, when I use regular expression in :find for searching files, Neovim will substitute the wildcard for me automatically:

But now, with the default config nvim-cmp provided, when I try to use regex, cmp-cmdline didn't make the substitution:

  cmp.setup.cmdline(':', {
    mapping = cmp.mapping.preset.cmdline(),
    sources = cmp.config.sources({
      { name = 'path' }
    }, {
      { name = 'cmdline' }
    })
  })

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