DEV Community

Mytx
Mytx

Posted on • Updated on

De[v]log#2: Making astronvim and raylib work on window + Extra: astronvim LspInstall error on android

Image description

Image description

My day started off pretty normal....still feeling bad that I couldn't finish setting up yesterday...so with new determination and all i set out to solve those errors...

first order of business was to fix everything that is wrong with astronvim....

There are dependencies to install before install astronvim and my negligence caused me a great headache...installed all of them and those errors warning go away...

now for the next error...i noticed that i couldnt using :TSInstall
apparently it is compile error...due to compiler being super old or something so i setout to fix it

fortunately there is already support for this error

https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support

Enter fullscreen mode Exit fullscreen mode

this link helped me out...i literally installed almost everything describe in there...curl tar mingw llvm
then i put this line of code

require 'nvim-treesitter.install'.compilers = { "clang" }
Enter fullscreen mode Exit fullscreen mode

at the end of nvim/init.lua file and voila....the issue is resolved! Astronvim now run almost flawlessly...a few hiccups here and there but i can tolerate them for now...so i will just fix them later

After that i tried to fix raylib once again...
following along this make it possible to compile and run on vscode

https://www.appsloveworld.com/cplus/100/561/how-to-add-raylib-to-vs-code
Enter fullscreen mode Exit fullscreen mode

but for some reason...that only work for c codes...i gotta search a way for c++ to work too...but atleast i can fallback and work with c now

My eyes and head hurt from all those setbacks but hey...adrenaline rush after solving a problem always motivate me to keep on going...so all is well in the end i guess?

Extra

I dont want to write a new log for this since it is a miniscule problem...running astronvim on android work fine with one exception... I could'nt install clangd with LspInstall command...
The error says "Failed due to unsupported platform or something"
Manually installing clangd outside of nvim and putting this line at the bottom of /nvim/init.lua solve the problem

require'lspconfig'.clangd.setup{}

with one problem solved...new one arrived gcc wont work on termux and now I m trying to setup archlinux on termux with proot...

I had some trouble install tree-sitter-cli with cargo and npm on termux...I was busy that day and forgot to write about it...I will just do it later

Top comments (0)