Exafunction / codeium

Other
200 stars 9 forks source link

Add Support for Termux arch: armv8l #33

Open TralahM opened 5 months ago

TralahM commented 5 months ago

Please consider adding binary support for 32-bit architectures (armv8l) for users on Android devices using Termux.

v3ceban commented 4 months ago

Would love to have termux support as well

qvalentin commented 3 months ago

You can work around this with proot.

I did something like this:

  1. Install archlinux arm proot
  2. Download codeium arm to the proot distro (e.g. to /bin/codeium-lsp)
  3. Setup a script to run the lsp in the proot env:

codeium-lsp-proot.sh

#!/data/data/com.termux/files/usr/bin/bash

unset LD_PRELOAD
proot -r ~/../usr/var/lib/proot-distro/installed-rootfs/archlinux/ -0 -w / -b /dev -b /proc -b /sys -b /data/data/com.termux/files/usr/tmp /bin/codeium-lsp $@
  1. Set vim.g.codeium_bin = "/data/data/com.termux/files/home/bin/codeium-lsp-proot.sh" to use the script to launch codeium (for neovim)