cmp-cmdline icon indicating copy to clipboard operation
cmp-cmdline copied to clipboard

Wildcard not substituted properly when using regex in :find command

Open rqdmap opened this issue 2 years ago • 1 comments

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' }
    })
  })

rqdmap avatar Apr 17 '23 13:04 rqdmap

Same issue with :e **/file.txt.

naquad avatar May 06 '23 01:05 naquad