Using platformio debugger in neovim

Neovim has come a long way in terms of debugging especially with support for nvim-dap and nvim-dap-ui.

Currently, I don’t see a way to use the PlatformIO debugger with Neovim and I would love to write up something to bring support for it to Neovim, most-likely a plugin.

In spirit of that, I opened up this issue on the GitHub but sadly there has been no activity.

I would like to get the ball moving on this since it has been pretty long. To be clear, I currently do not have the full picture for the integration process and will most likely face challenges along the way. But I’m pretty sure we could solve them as we go along.

So, does the launch.json as generated by the PlatformIO core for VSCode work here, too?

It explicitly mentions the Microsoft C/C++ extension as an available “debug adapter”, with even a Wiki entry, and the launch.json

I think it should, but I’ll poke at it a bit later. I want to start with something easier for now.

I noticed that in VS Code, I get completion for platformio.ini and documentation info. Which language server takes care of it? Is there a repo for it?

The closest I could find was that VS Code launches pio -c vscode home.