Lua_ls with Termux #1438
aBaechtold
started this conversation in
General
Replies: 1 comment 1 reply
-
Hello! So pre-built assets for Termux are rarely (if ever) provided. Termux provides their own package manager which you can use to download the language server. Note that they need to apply patches to make it build, I'm not sure how invasive these are or if the lua-langauge-server maintainers are interested in providing Termux/Bionic binaries. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using Termux (Android phone, v0.118.0) to run NeoVim (nvim) and was trying to use Mason as a tools extension manager plugin i.e. for a lightweight IDE. I setup the mason_lspconfig plugin along with it and intended to have lua_ls (Sumneko's lua-language-server) automatically installed to support nvim's Lua side of things. However this fails. The error is:
"The current platform is unsupported."
I'm fairly new if it comes to nvim/vim and Lua, or Mason for that matter, but from investigation the error message seems to be from Mason's core module (see log below). The repository entry for lua_ls defines common targets as released by Sumneko's GitHub project e.g.
linux_arm64_gnu
. There seems to be no match for the Termux setup.uname
on my Termux reports asLinux
,aarch64
, or per GCC (Clang) asgcc -v; clang version 16.0.6; Target: aarch64-unknown-linux-android24
.It's a bit unfortunate that one of the main LSP packages fail to install, but wouldn't consider this a failure of Mason. Termux is probably not considered by many as a target. Hence a discussion rather than an issue.
The question is what options I have to get lua_ls working. I see the following ones, given that I'm able to build it from the sources and that apparently there is even a Termux Pkg (built on APT) package:
I guess my preferred option would be to use the Pkg package with Mason (option 2).
As far I can see, I could probably make an entry in the registry for the missing target and point to a GitHub repo having that release. For the Pkg package, would I need to implement a corresponding provider (PURL) ?
What are your suggestions ?
Ps: I was looking for input prior to writing here i.e. googled, reviewed Mason GitHub issues, checked the Mason plugin help in nvim. Only saw that there is an issue for local repositories i.e. Add the ability to point to a local repository #1424, which could be one solution strategy.
Log:
Beta Was this translation helpful? Give feedback.
All reactions