lewis6991 / impatient.nvim

Improve startup time for Neovim
MIT License
1.19k stars 28 forks source link

cmp-tabnine gets automatically loaded before cmp itself #43

Closed j-ilden closed 2 years ago

j-ilden commented 2 years ago

See my issue here. https://github.com/tzachar/cmp-tabnine/issues/32

tzachar/cmp-tabnine can't be installed when impatient.vim is enabled. No matter how often you clear or rebuild cache. It requires cmp_tabnine.config to be loaded. Impatient loads tabnine earlier than cmp for a reason I could not find.

If you have an auto reload of Packer upon save of your config file, Packer won 't reload properly before installation. I have resolved the installation issue with my pull request to tabnine above.

But there needs to be a rule set for this in impatient. I couldn't figure out how, and documentation didn't help me either. Maybe it's me, but it will definitely be someone else as well.

lewis6991 commented 2 years ago

Can you please provide some form of reproducible minimal testcase?

From what you have said, it sounds like the issue isn't related to impatient.

Impatient loads tabnine earlier than cmp for a reason I could not find.

Impatient doesn't change the order or when a module is loaded, it just caches the modules bytecode when it is loaded.

If impatient can't find the module, then it will default to the original loader.

lewis6991 commented 2 years ago

Closing, but will reopen if this is still an issue.