mason-lspconfig.nvim: failed to install lua_ls
So, a few days ago, i install NeoViM with LazyNViM, everything was right, until this message show up, it just annoying to see this everytime i edit a file, i heard that lua_ls does not support Android, but AT LEAST the error message is gone, not fully resolved, how?
18 Replies
dont use mason, install servers manually
could you provide the reason why it does not work? Just curious if it is possible to fix.
i tried looking into it, it uses purl to install stuff
you could fork the mason registry repo to add stuff thats termux compatible
here's lua-ls pkg for example https://github.com/mason-org/mason-registry/blob/main/packages/lua-language-server/package.yaml
GitHub
mason-registry/packages/lua-language-server/package.yaml at main · ...
Core registry for mason.nvim. Contribute to mason-org/mason-registry development by creating an account on GitHub.
looks like lua-ls doesnt relese bionic+arm64 binaries on github, thats why it doesnt work
when i check the log using :MasonLog, it says something like "lua-language-server, stylua, shfmt, The current platform is unsupported"
also i try to install lua-language-server manually using pkg, the issue still persist somehow
installing manually doesnt mean itll work in mason
but itll work in lspconfig now
Then, the thing is, the error message still show up, how to hide it at least?
remove lua-language-server from auto install
how?
idk, check
mason-lspconfig
configwhere is the mason-lspconfig config file? couldn't find it in .config/nvim
Google can help you
this is why i hate nvim distros :tuxwtf:
do
:Telescope live_grep
or :Telescope find_files
to search for itwhat is the name of the configuration file? init.lua or something like that?
again i have no idea, it could be anything
grep -r mason
I managed to disable mason and mason-lspconfig, it's actually pretty easy, just add disabled.lua in ~/.config/nvim/lua/plugins/, and add return statement that disable both of mason and mason-lspconfig, which i found somewhere in GitHub issue