Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace neotest-go adapter with neotest-golang
Tried to setup DAP for go following nvim-dap documentation and using delve directly, as described in https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#go-using-delve-directly However, I was struggling to get DAP working and was getting "Error on launch: Failed to launch" errors all the time, when I discovered (via dap-ui) that the defaults of nvim-dap-go expects go.mod to be in the root of the project. At the same time, the "native" neotest adapter for go seems to have the same behavior and does not seem to support projects where go.mod is not in the root. This was originally described here leoluz/nvim-dap-go#80 (comment), and there's an open issue for this in nvim-dap-go: leoluz/nvim-dap-go#85 There is, however, another adapter for go - fredrikaverpil/neotest-golang - which seems to be more flexible and does support projects where go.mod is not in the root. After replacing the adapter and adding configurations as per https://github.com/fredrikaverpil/neotest-golang/?tab=readme-ov-file#example-configuration-debugging, I was finally able to get DAP working for go.
- Loading branch information