cmp-cmdline
cmp-cmdline copied to clipboard
Wildcard not substituted properly when using regex in :find command
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' }
})
})
Same issue with :e **/file.txt.