When developing zig using neovim, I often get annoyed when the zls version and zig(dev) don't match
I recently combined zig and neovim through luajit and zig build system(This allows me to compile the zig code into a c library), then wrote a plugin to improve the experience of developing zig in neovim so that allows neovim to call zig to take advantage of some unique features of zig, such as parsing zon files! !
The repo: https://github.com/jinzhongjia/zig-lamp
Currently, this plugin supports managing zls. I think many people have encountered the trouble of manually downloading zls when using zig nightly. Referring to the official release-worker of zls, I made it possible for us to download the zls nightly we need with just a simple command
Of course, this plugin can also parse builg.zig.zon
files, modify the package name, version number, required zig version, add or delete dependencies, etc. .
luajit and zig's build system is simply a great invention
Latest comments (0)