hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.47k stars 370 forks source link

suggestion: add "type checking" for sources #1798

Open docwhat opened 5 months ago

docwhat commented 5 months ago

FAQ

Announcement

Description

I accidentally, out of ignorance, put cmp-cmdline in the global sources instead of in the cmdline setup function. Similar to #1310

I was thinking if nvp-cmp could check if the type was correct and raise and error, warning, or maybe reject it outright, then it would prevent this problem in the future.

Additional context

I love everything about cmp!