peabnuts123 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=32377 (Release) EmmyLua autocomplete/intellisense definitions for PICO-8 <p>Howdy folks, this is my first post here!</p> <h1>What is this?</h1> <p>I've written a full set of EmmyLua API definitions for the PICO-8 API, so that you can get full autocomplete/intellisense suggestions and documentation when editing code in an external editor.</p> <p><img src="https://peabnuts123-public-files.s3.amazonaws.com/pico8-api-demo.gif" alt="Recording showing multiple examples of autocomplete in action" /></p> <h1>Why?</h1> <p>I've been following pico8 for a few years now but haven't sunk my teeth into really making anything until recently. Something that I've sorely missed all the times I have tinkered about with pico8 is proper code editor awareness of the pico8 API, autocomplete, definitions etc (coming from a C# and JavaScript background).<br /> I thought for sure somebody would have made this but I couldn't even find any real proper editor support for Lua in general ... until now! I've discovered a neat language server utility called <a href="https://emmylua.github.io/">EmmyLua</a>. It allows you to decorate code with annotations that provide type information and documentation. If you are familiar with JSDoc, it's very similar to that. EmmyLua has first-class support for 2 of the main code editors out right now: VSCode and IntelliJ.</p> <h1>Where do I get it?</h1> <p>You can find the files you need on <a href="https://github.com/peabnuts123/pico8-emmylua-definitions">the GitHub repository</a> for the project. You just need to include 1 single .lua file somewhere in your project, it can be in a separate folder, and won't interfere with your PICO-8 setup at all.</p> <h1>You missed some stuff! / Something is wrong!</h1> <p>Please let me know! You can raise an issue / pull request on GitHub, or just let me know on here.</p> <h2>Thanks!</h2> <p>Please let me know if you find this useful! I'd love to hear feedback of all kinds. Thanks!</p> https://www.lexaloffle.com/bbs/?tid=42081 https://www.lexaloffle.com/bbs/?tid=42081 Fri, 19 Mar 2021 21:24:51 UTC