This summer as part of their GSoC project, Sam Heckle built the L5lua extension for Visual Studio Code and VS Codium (open source non-telemetry alternative) to make it easy to get started using the L5 creative coding library (in Lua). You can install it by opening up the extensions and searching for L5lua.
There are now step by step install guides for Mac, Win, PC, with video tutorials for Windows and Mac. It adds a Run L5 and Stop buttons to the VS Code editor, so you can play your L5 projects easily within the editor.
Hooray and thanks to Sam for building this! Feel free to ask questions, give feedback or file bug reports.
Hey Lee! Great work on bringing the Processing ethos to Lua, was wondering if there’s any plans in exploring any Neovim related tooling for L5 ? In editor help text files would be awesome too.
In-editor help text is already deployed and works in all editors with language servers, including Neovim! Make sure you have a version 0.2.0 of L5.lua or above that was released around the same time the L5lua extension was released. For Neovim you need to have a Lua Language Server running.
Please excuse the ugly theme color I have set up, but here’s an example of what it looks like. My cursor is on the line with the word textSize() and i’ve pressed K which opens up the annotations (provides reference text). There are also ways to turn on autocomplete and such but I don’'t usually personally use that and haven’t tried it yet but should also work.
I’m using Vim-plug to manage my Neovim plugins and am using the nvim-lspconfig for Lua Language Server added. Here’s the relevant part of my init.lua snippet below. I’m happy to try to help get this working for you but maybe we can open up another separate post/thread to discuss Vim/Neovim or language server. And by the way, the Auto-hotreload functionality isn’t yet added to L5.lua itself but my goal is to have that in a future update. Currently it is an optional setting you can turn on in L5lua extension. I’m open to hearing about other useful needs or questions. I’m also lately testing out old Vim classic and have it working on there too, but using a different plugin.