Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim-cmp and its extension issues #271

Open
tiankaixie opened this issue Dec 1, 2022 · 3 comments
Open

nvim-cmp and its extension issues #271

tiankaixie opened this issue Dec 1, 2022 · 3 comments

Comments

@tiankaixie
Copy link

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.

@0-th
Copy link

0-th commented Dec 3, 2022

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?

@imzaynb
Copy link

imzaynb commented Jul 19, 2023

Hey there!

I was able to resolve this issue by renaming cmp.lua --> <something else>.lua and changing the proper line in init.lua as apparently one of the plugins has a requirement or something of the same name.

See this for more info: hrsh7th/nvim-cmp#1063.

@0-th
Copy link

0-th commented Aug 27, 2023

Oh! That's cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants