Getting this error from CMP after copying someone else’s CMP guide
Failed to source /home/hater/.local/share/nvim/lazy/cmp-go-pkgs/plugin/cmp_go_pkgs.lua
vim/_editor.lua:341: /home/hater/.config/nvim/init.lua…nvim_exec2() called at /home/hater/.config/nvim/init.lua:0…/home/hater/.local/share/nvim/lazy/cmp-go-pkgs/plugin/cmp_go_pkgs.lua: Vim(source):E5113: Error while calling lua chunk: …local/share/nvim/lazy/cmp-go-pkgs/plugin/cmp_go_pkgs.lua:1: module ‘cmp’ not found: no field package.preload[‘cmp’] cache_loader: module cmp not found cache_loader_lib: module cmp not found no file ‘./cmp.lua’ no file ‘/usr/share/luajit-2.1/cmp.lua’ no file ‘/usr/local/share/lua/5.1/cmp.lua’ no file ‘/usr/local/share/lua/5.1/cmp/init.lua’ no file ‘/usr/share/lua/5.1/cmp.lua’ no file ‘/usr/share/lua/5.1/cmp/init.lua’ no file ‘./cmp.so’ no file ‘/usr/local/lib/lua/5.1/cmp.so’ no file ‘/usr/lib/x86_64-linux-gnu/lua/5.1/cmp.so’ no file ‘/usr/local/lib/lua/5.1/loadall.so’ stack traceback: [C]: in function ‘require’
I use both linux and windows for development and the github page is:
I also get a lazy.vim warning about resourcing the config, but I don’t really know why.