hrsh7th / nvim-cmp

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

Autoloading #238

Closed SevereOverfl0w closed 3 years ago

SevereOverfl0w commented 3 years ago

For authors of completion engines, it would be useful to support detection of when cmp is loaded. This allows for plugins which may not be used alongside cmp always to not have to do a slow conditional load of cmp. Alternatively, you could automatically load sources by name using a special path.

Ncm2 solves this by problem by using an autocommand: https://github.com/ncm2/ncm2/blob/master/doc/ncm2.txt#L505-L512

hrsh7th commented 3 years ago

OK. I will add it. Thanks!

hrsh7th commented 3 years ago

I've added the cmp#ready autocmd.