hrsh7th / cmp-cmdline

nvim-cmp source for vim's cmdline
MIT License
493 stars 42 forks source link

Respect wildignore when completing files #107

Open gi1242 opened 6 months ago

gi1242 commented 6 months ago

Hi There,

On some commands (e.g. :e) it looks like cmp_cmdline completes files without respecting wildignore. If the trigger characters . or / are pressed, then the completion is provided by cmp_path.

I just patched cmp_path so that it respects wildignore. I was trying to do the same for cmp_cmdline, but couldn't figure out where the filenames are generated.

Any pointers?

Thanks