DoNe - neovim editor plugin for better defold experience

DoNe - Defold on Neovim (extended)

I have been using it for past week or so and was happy about it. So I have polished it yesterday (it still need some refactoring) and released it today.

  • Supports autocompletion and documentation for defold api.
  • Adds posibility to get them for dependency libraries (lua and native).
  • Adds filetype detection and highlighting for all defold project files.
  • Adds some commands which can be invoked from the editor: build and run project, hot-reload it and fetch dependencies.

More info https://github.com/monkoose/DoNe

The hardest part was to parse script_api files and convert to lsp meta files.
My guess they were used long before lua-language-server support in the editor, because for now I think it is better to just add some @meta lua files and lsp can detect them.
I have made https://github.com/monkoose/DoNe/blob/main/lua/done/parser.lua script that can be used to convert script_api to meta files. It still need polishing to be invoked from cli.

13 Likes

Great! Thank you for sharing it! I took the liberty of adding it to the asset portal. It should be available in a few minutes.

(https://github.com/defold/asset-portal/commit/19ad64518e18680356792541b43bfe51ef6d54f6)

4 Likes

Great! Wish it had worked in Windows. I’ve tried to make it work but unfortunately it does not work.