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.

Hi,
I’m sorry, I’m a total newbie with Lazy.vim, and I don’t understanf how to install this plugin.

Lazy.vim is correctly installed, and all the packages with LuaRocks.
When I execute :Lazy load DoNe, the error is Lazy load requires at least one plugin. So obviously this plugin is not installed.
How do I install it ?
Do I need to copy the content of your repo into .config/nvim