I just wanted to leave this here for posterity of anyone else encountering the same issue, given that it took me some time to figure it out on my side.
When opening Neovim once the plugin is intalled, I get the following error:
vim/_editor.lua:0: /home/jemag/dotfiles/neovim/.config/nvim/init.lua..nvim_exec2() called at /home/jemag/dotfiles/neovim/.config/nvim/init.lua:0[1]../home/jemag/.local/share/nvim/lazy/vscode-diff.nvim/plugin/vscode-diff.lua: Vim(source):E5113: Error while calling lua chunk: ...hare/nvim/lazy/vscode-diff.nvim/lua/vscode-diff/diff.lua:58: ...hare/nvim/lazy/vscode-diff.nvim/lua/vscode-diff/diff.lua:48: libgomp.so.1: cannot open shared object file: No such file or directory
I am currently running Arch on WSL and libgomp.so.1 is properly available within /usr/lib.
That being said, Neovim itself was installed using Nix. It seems that when trying to load the library with ffi inside the plugin, it cannot find my regular arch libgomp library, and since it is not available through my Nix installation, the plugin fails.
The solution, in my case, was to install libgcc.lib and make it available for neovim specifically using Home manager's :
programs = {
neovim = {
enable = true;
extraWrapperArgs = [
"--prefix"
"LD_LIBRARY_PATH"
":"
"${pkgs.libgcc.lib}/lib"
];
There might be a simpler/better way to go about this though.
I just wanted to leave this here for posterity of anyone else encountering the same issue, given that it took me some time to figure it out on my side.
When opening Neovim once the plugin is intalled, I get the following error:
I am currently running Arch on WSL and
libgomp.so.1is properly available within/usr/lib.That being said, Neovim itself was installed using Nix. It seems that when trying to load the library with
ffiinside the plugin, it cannot find my regular archlibgomplibrary, and since it is not available through my Nix installation, the plugin fails.The solution, in my case, was to install
libgcc.liband make it available for neovim specifically using Home manager's :There might be a simpler/better way to go about this though.