Skip to main content
Image

r/love2d


[Tools] LÖVE plugins: Snippets, LuaCATS Definitions, API syntax highlighting, built-in LÖVE API documentation
[Tools] LÖVE plugins: Snippets, LuaCATS Definitions, API syntax highlighting, built-in LÖVE API documentation

Hello LÖVErs! 👋 I've put together a toolchain for LÖVE development. The tools covers snippets, LuaCATS Definitions, API syntax highlighting, built-in LÖVE API documentation – but the availability depends on your editor. Below I've clearly separated what works for VS Code, Neovim and others.

📝 Snippetslove2d-snippets. This is the foundation: a comprehensive collection of LÖVE snippets covering modules, callbacks, and common patterns. It's editor-agnostic and works with any snippet engine.

📚 LuaCATS definitionslove2d-definitions. I made my own version of LuaCATS definitions. This one features: automatic updates via GitHub Actions, smart type handling (unions, arrays like table[], optional params as type?), function overload support, inheritance (love.Drawable), and version branches (e.g., 11.5 for LÖVE 11.5).

🌲 Special for Neovim users

  • Tree-sitter highlightinglove2d-treesitter.nvim.

  • Complete built-in LÖVE API documentationlove2d-docs.nvim.

  • Vim syntax highlightinglove2d-vim-syntax. Alternative to Tree-sitter for Vim (and Neovim in legacy mode). It works with regex-based highlighting instead of syntax tree parsing, but fully covers the LÖVE API.

⚠️ Installation details – Each repository has a thorough README with step-by-step setup instructions. Please refer to the READMEs directly – they're kept up-to-date and cover everything.

❓ Question for Neovim users – Would a separate, more detailed post about the Tree-sitter plugin and definitions configuration be helpful in r/neovim? Let me know. If there's interest, I'll write one up focusing purely on Neovim setup.


Take your product from first-pass to release-ready. Codex, available with ChatGPT.
Image Take your product from first-pass to release-ready. Codex, available with ChatGPT.


Making a game where you recreate paintings using newspaper cutouts
Making a game where you recreate paintings using newspaper cutouts
media poster

Completely normal run in Pip & Bones. Completely normal.
Completely normal run in Pip & Bones. Completely normal.