I try to use nvim-cmp with neovim from the neovim-flake.
This is the error while building:
Generating remote plugin manifest
Error detected while processing /nix/store/is6497iayyxy1fpviwb8x221xp7645bf-lua5.1-nvim-cmp-0.0.1-2/nvim-cmp-0.0.1-2-rocks/nvim-cmp/0.>
E5113: Error while calling lua chunk: ...2/nvim-cmp-0.0.1-2-rocks/nvim-cmp/0.0.1-2/plugin/cmp.lua:10: module 'cmp.utils.api' not found:
no field package.preload['cmp.utils.api']
no file '/nix/store/5myx7s4iqsj08pqci4r2d6b1rdm093vg-luajit-2.1.0-2022-04-05-env/share/lua/5.1/cmp/utils/api.lua'
no file '/nix/store/5myx7s4iqsj08pqci4r2d6b1rdm093vg-luajit-2.1.0-2022-04-05-env/share/lua/5.1/cmp/utils/api/init.lua'
no file '/nix/store/5myx7s4iqsj08pqci4r2d6b1rdm093vg-luajit-2.1.0-2022-04-05-env/lib/lua/5.1/cmp/utils/api.so'
no file '/nix/store/5myx7s4iqsj08pqci4r2d6b1rdm093vg-luajit-2.1.0-2022-04-05-env/lib/lua/5.1/cmp.so'
stack traceback:
[C]: in function 'require'
...2/nvim-cmp-0.0.1-2-rocks/nvim-cmp/0.0.1-2/plugin/cmp.lua:10: in main chunk
remote/host: python3 host registered plugins []
remote/host: generated rplugin manifest: /nix/store/hbvrmm71jsdfzlm3m0y3zw81xs3srdd9-neovim-master/rplugin.vim
Generating rplugin.vim failed!
(see https://gist.github.com/573/a053a8ab02f249b4d0df8f3fad363249)
All I could find so far is this ticket but /nix/store/is6497iayyxy1fpviwb8x221xp7645bf-lua5.1-nvim-cmp-0.0.1-2/nvim-cmp-0.0.1-2-rocks/nvim-cmp/0.0.1-2/plugin/cmp.lua
doesn’t seem to have any of these lines mentioned there in it.
Am I doing something obviously wrong ?