While i was configure nvim via termux, specifically it’s lsp servers, it will always give an error that the lsp is not installed (Error code 2(?)), even though it’s properly configured already. the same issue with distributions like NvChad, and (probably) LazyVim. This bug also happens on Helix either, which gives a sign that this is a problem to Android’s side.

And so i did a quick Google search about the problem and quickly found a closed GitHub issue at the Termux repository and it also linked another issue at the comments, which included the solution for the problem (and it’s on the comments.)

If you want just the .zip file, here’s the link for it:

termux-exec.zip

How to install?

Unpack the .zip file, then copy the termux-exec with the right architecture as your phone’s to termux’s home directory (not necessarily)

1
cp termux-exec_2.0.0_aarch64.deb ~ # change 'aarch64' into yout phone's architecture

Then, run dpkg to install the package:

1
dpkg -i termux-exec_2.0.0_aarch64.deb

Now run any text editor, and your lsp servers should work at this point.

I dont know what the package fixes, but at least this solution works.

This bug seems to only happens to phones with Android 14+ apparently.