docs(dap): add

This commit is contained in:
Smirnov Oleksandr 2022-09-22 17:39:06 +03:00
parent 9f6e94f46f
commit 93be1b1d6f

View file

@ -56,7 +56,7 @@ It will install next tools:
- [iferr](https://github.com/koron/iferr) - [iferr](https://github.com/koron/iferr)
2. Modify struct tags: 2. Modify struct tags:
By default `json` tag will be added/removed, if not set: By default `json` tag will be added/removed, if not set:
```vim ```vim
:GoTagAdd json " For add json tag :GoTagAdd json " For add json tag
@ -146,9 +146,19 @@ Set cursor on the line with **err** and execute:
:GoIfErr :GoIfErr
``` ```
10. Setup nvim-dap for go in one line.
Notice: [nvim-dap](https://github.com/mfussenegger/nvim-dap) is required
```lua
require"gopher.dap".setup()
```
## Contributing ## Contributing
PRs are always welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md) PRs are always welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md)
## Thanks ## Thanks
- [go.nvim](https://github.com/ray-x/go.nvim) - [go.nvim](https://github.com/ray-x/go.nvim)
- [nvim-dap-go](https://github.com/leoluz/nvim-dap-go)