cmp.setup.cmdline(':', {
sources = {
{ name = 'cmdline', keyword_length = 2 },
{ name = 'nvim_lua' },
{ name = 'path' },
},
})
The custom completion function fails to run. The reason appears to be this code in cmp-cmdline. The regex processing ends up mangling the command name (in this specific instance it is this regex that causes the problem).
If I comment out the code linked above everything works as expected. if I comment out the referenced regex everything works as expected. At least with my configuration, if I change the name of the command to ResToreThing or RestOreThing everything works as expected.
Given:
when
cmp-cmdline
is configured like so:The custom completion function fails to run. The reason appears to be this code in
cmp-cmdline
. The regex processing ends up mangling the command name (in this specific instance it is this regex that causes the problem).If I comment out the code linked above everything works as expected. if I comment out the referenced regex everything works as expected. At least with my configuration, if I change the name of the command to
ResToreThing
orRestOreThing
everything works as expected.