If cmp_nvim_lsp has not already been installed, this require will fail. Moving it to the config call allows lazy to find it listed in the dependencies above and install it before we try requiring it.
I suspect this doesn't happen if you start from the full nvim-basic-ide example since it'll also get installed in cmp.lua but I was building my config up step-by-step with this as a guide and bumped into it.
If cmp_nvim_lsp has not already been installed, this require will fail. Moving it to the config call allows lazy to find it listed in the dependencies above and install it before we try requiring it.
I suspect this doesn't happen if you start from the full
nvim-basic-ide
example since it'll also get installed incmp.lua
but I was building my config up step-by-step with this as a guide and bumped into it.