Defold.nvim - Batteries-included development environment for the Defold game engine, powered by Neovim

Release 0.6.0

  • update dependencies
  • add support for sending build errors to the quickfix list (commit)

This allows you to instantly jump to errors in your project

Release 0.7.0

  • add ability to run the game via Defolds :make
  • add ability to see the game logs (through :make) and parse them for errors to add into quickfix
  • new :DefoldRun command to well run the game
  • remove support for settings keymaps through the plugin, you can restore the original behavior by using: vim.api.nvim_set_keymap({"n", "i"}, "<C-b>", ":DefoldRun<CR>")

Switching to :make allows the plugin to integrate better into normal Neovim workflows / tooling

2 Likes

Hello! It looks like the last update broke the build function on macOS. I’ve opened an issue here:

1 Like

Should be hopefully fixed, I really need to get a Mac/Windows machine at some point to test stuff like this :smiley:

1 Like

Release 0.8.1

Mostly some minor fixes

  • fix: add launcher.run_arg config to overwrite run_arg in termlauncher, which allows modifying the way Neovim is started through custom terminals

  • windows: default to use game runner mode “send” since “:make” doesn’t seem to work on windows

  • macos: update to termlauncher 0.4.0 which now supports automatically detecting installed terminals from your /Applications (or ~/Applications) directory

3 Likes

Release 0.8.2

  • Extend :checkhealth defold with dependency informations
  • Fix generated .script_api annotations not exporting globals
  • harden script api compiler to keep compiling everything that it can even when there are errors

Release 0.8.3

  • update Hyprland focus switcher to use new (0.55+) syntax
  • improve focus switcher debug logging
  • fix Neovide not launching anymore under certain circumstances (since 0.8.1)
  • fix remote open file commands doing unnecessary stuff
  • add alive-check before asking Neovim to open a file and restart Neovim if necessary

Release 0.9.0

Release 0.9.1

  • allow using custom debugger setups (set config: debugger.integration to “local”)
  • allow changing the mobdap debugger port via config

Release 0.9.2

  • fix context aware completions appearing multiple times

Release 0.9.3

  • Fix regression when clicking on paths with lines from within Defold

Release 0.9.4

  • Align rust sidecar version with plugin version instead of always pulling the newest one, this allows you to pin the plugin release to an older version without problems
  • add rustsec security audits to pipeline

Release 0.9.5

  • Quickfix list: Fix build logs showing “information” events as errors

Release 0.9.6

  • fix windows Powershell path escape/quoting (thanks to HeffU)
  • fix panic when using :make when Defold returns an issue with information severity
2 Likes

Release 0.10.0

  • Breaking: refactor debugger integration to auto detect which debugger you’re using, the custom_* configs are now under debugger.mobdebug. instead
  • add support for the moonbug debugger, would recommend using this over mobdebug, it’s purpose built for Lua ↔ DAP and is more or less built for being used with Defold, its much better (i might be biased)
  • add support for attaching to a game in addition to only launching a new one (only moonbug)
  • fix error when Defold reports an error outside of a code file (e.g. a collection)

Release 0.10.1

  • fix health check supporting new debugger integration

Release 0.10.2

  • allow enforcing to load a debugger integration via debugger.force_variant
3 Likes

Release 0.11.0

  • add support for the new native Lua debugger
  • support the official Lua annotations (and multiple versions if your editor is outdated)
  • distinguish between script types and offer per script type snippets
  • add support for .gui_script completions
  • fix component local paths not working for completions (e.g. you’re in main:/player#script and want to access main:/player#sprite it previously didn’t show you #sprite as an option
  • better support for self in snippets, defold.nvim now creates “class names” depending on your preferences, e.g. main/world/world_manager.lua can become ---@class main.world.WorldManager (namespaces can be disabled)
  • rework downloading (should block less)

Release 0.12.0

  • refactor asset handling, everything is now downloaded in a non-blocking manner
  • add ability to repair the installation via :lua require("defold").repair()
  • add an error dialog when Neovim can’t be started from Defold
  • improve native debugger support to not rely on brittle log reading
4 Likes

I was always a bit too afraid of using nvim, but now with the new Lua debugger and all these annotations and completions I’ll give it a shot :star_struck:

1 Like

Release 0.13.0

  • add support for nvim.cmp and (Neovim native) completefunc (experimental)
  • add support for preview image integration via require("defold.preview").get_file("main/main.collection") this will return a path to the preview of said collection (also supports .go, .ui, etc), I haven’t found a good generic place to integrate this in yet so this is just the functionality to get this for e.g. integrating with your file picker or whatever
  • new and improved :checkhealth defold page
4 Likes

Release 0.14.0

  • Add support for custom focus switchers
  • Add support for more focus switchers by default (niri, KDE, GNOME (using Window Controls extension)
  • Add ability to customize icons and colors
  • Add support for mini.icons
  • Standardize data/cache directory structure (will reload a lot of stuff on the first launch)
  • Use /bin/sh instead of bash on Linux/macOS for launchers
  • Support for customizing env vars in the launcher
  • Windows: Fix Neovide not working properly anymore

I’d also highly recommend reading the install part of the setup again, you should be using tagged releases if possible and I’ve also been playing with doing beta releases so that I can test drive the changes before releasing them, sadly vim.pack just loads the newest tag even if it says something like “v0.14.0-beta2” for which I added some special instructions.

Also we’ll probably be dropping support for Intel Macs at the end of the year unless someone really wants to keep this going, given that Homebrew has already dropped it and Github actions will also next year

3 Likes