hrsh7th / cmp-vsnip

nvim-cmp source for vim-vsnip
MIT License
92 stars 5 forks source link

Use lua in after plugin #4

Closed sharksforarms closed 1 year ago

sharksforarms commented 1 year ago

Use lua in after plugin

This seems to solve an issue I have on the first install using packer. Other cmp plugins didn't have this error and this seems to be the only difference. I imagine the vim calling lua to require cmp happens too late for packer when it runs? Not sure.

async.lua:20: Error in coroutine: ...ack/packer/start/packer.nvim/lua/packer/plugin_utils.lua:204: Vim(lua):E5108: Error executing lua [string ":lua"]:1: module 'cmp' not found:
no field package.preload['cmp']
hrsh7th commented 1 year ago

Looks good. Thank you!