akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp
MIT License
935 stars 75 forks source link

feat(dap): add custom commands to nvim-dap #294

Closed ch-vik closed 9 months ago

ch-vik commented 9 months ago

This simple PR aims to extend the available commands of nvim-dap by adding the custom requests hotReload and hotRestart.

Being customRequests provided by the flutter debug_adapter and not part of the DAP standard payload, it makes sense that the flutter plugin extends these functionalities.

This can also provide a means to use the hot reload functionality even in debug mode, where, as it is now, it is the only reliable way to run nested complex projects (with project configuration).