0 Followers
0 Following
1 Posts

I made very simple and extremely fast Live Reload Server in just pure lua

https://lemmy.world/post/41297942

I made very simple and extremely fast Live Reload Server in just pure lua - Lemmy.World

cross-posted from: https://lemmy.world/post/41297887 [https://lemmy.world/post/41297887] > I really wanted a HTML live reload plugin that has statusline integration and does not depend on entire chromium to create a simple web server. I couldn’t find anything I’d like so I’ve decided to make my own plugin. > I was kinda afraid that implementing websockets in lua would be terrible task but it turns out I didn’t need to, because SSE [https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events] exists. > HTTP is simple, watching for file changes as well so I got to work. > Result: Very small (Less than 500 lines of code) plugin that launches in 0.1-0.2ms! (It’s amazing what you can do when you don’t need to load whole V8 from Chromium to serve a simple webpage. > I also made support functions for statusline of two popular distors: NvChad and AstroNvim but you can also launch it from cmds if you prefer. > > Since I’m kinda new to nvim & lua scripting I’d appreciate any feedback on what could be improved or just done better. > For now I plan to add more features inspired vscode’s live-server extension although it most likely won’t be exact copy of that extension. > > Link: > > GitHub Repository [https://github.com/hyperstown/nvim-live-server] >

I made very simple and extremely fast Live Reload Server in just pure lua

https://lemmy.world/post/41297887

I made very simple and extremely fast Live Reload Server in just pure lua - Lemmy.World

I really wanted a HTML live reload plugin that has statusline integration and does not depend on entire chromium to create a simple web server. I couldn’t find anything I’d like so I’ve decided to make my own plugin. I was kinda afraid that implementing websockets in lua would be terrible task but it turns out I didn’t need to, because SSE [https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events] exists. HTTP is simple so, watching for file changes as well so I got to work. Result: Very small (Less than 500 lines of code) plugin that launches in 0.1-0.2ms! (It’s amazing what you can do when you don’t need to load whole V8 from Chromium to serve a simple webpage. I also made support functions for statusline of two popular distors: NvChad and AstroNvim but you can also launch it from cmds if you prefer. Since I’m kinda new to nvim & lua scripting I’d appreciate any feedback on what could be improved or just done better. For now I plan to add more features inspired vscode’s live-server extension although it most likely won’t be exact copy of that extension. Link: GitHub Repository [https://github.com/hyperstown/nvim-live-server]

KDE devs are great at naming things!

https://lemmy.world/post/29736217

KDE devs are great at naming things! - Lemmy.World

Lemmy

Yes!

[Feature request] Video upload support

https://lemmy.world/post/29443422

[Feature request] Video upload support - Lemmy.World

Most instances now support video upload.

Dream job! - Lemmy.World

Lemmy

Oh that’s just styropyro
I wonder how many false positives will happen.
Wait does it seriously need manual removal?
I guess I can just delete the wine prefix folder but still! This should be illegal. When I uninstall the game I don’t want to have the most intrusive part of it still installed on my system.