LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable

Home Page:https://www.chrisatmachine.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nvim-cmp and its extension issues

tiankaixie opened this issue · comments

Hello,

I am using neovim 0.8.1, and I am following branch 05-completion to set up my nvim-cmp. I exactly copied plugins.lua and cmp.lua, but I got this error:

               Error detected while processing /Users/tiankaixie/.local/share/nvim/site/pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:
E5113: Error while calling lua chunk: ...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: attempt to index a boolean value
stack traceback:
        ...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: in main chunk
Error detected while processing /Users/tiankaixie/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua:
E5113: Error while calling lua chunk: .../packer/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua:1: attempt to index a boolean value
stack traceback:
        .../packer/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua:1: in main chunk
Error detected while processing /Users/tiankaixie/.local/share/nvim/site/pack/packer/start/cmp-path/after/plugin/cmp_path.lua:
E5113: Error while calling lua chunk: ...ite/pack/packer/start/cmp-path/after/plugin/cmp_path.lua:1: attempt to index a boolean value
stack traceback:
        ...ite/pack/packer/start/cmp-path/after/plugin/cmp_path.lua:1: in main chunk
Error detected while processing /Users/tiankaixie/.local/share/nvim/site/pack/packer/start/cmp_luasnip/after/plugin/cmp_luasnip.lua:
E5113: Error while calling lua chunk: ...ck/packer/start/cmp_luasnip/after/plugin/cmp_luasnip.lua:1: attempt to index a boolean value
stack traceback:
        ...ck/packer/start/cmp_luasnip/after/plugin/cmp_luasnip.lua:1: in main chunk
Press ENTER or type command to continue

I suspect this is some version issue of those plugins, or nvim-cmp. Is anyone facing the same issue here? Thanks.

Following Chris' tutorial as well. Copied from the same branch. Neovim 0.8.1. No issues.
After displaying the error does the completion feature work?