docs(dap): add doc

This commit is contained in:
Smirnov Oleksandr 2024-04-02 17:10:20 +03:00
parent dba618d387
commit 34d742824f
3 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,8 @@
---@toc_entry Setup `nvim-dap` for Go
---@tag gopher.nvim-dap
---@text This module sets up `nvim-dap` for Go.
---@usage just call `require("gopher.dap").setup()`, and you're good to go.
local u = require "gopher._utils"
local c = require "gopher.config"
local dap = {}
@ -106,7 +111,7 @@ dap.configuration = {
},
}
---setup `nvim-dap` for Go
-- sets ups nvim-dap for Go in one function call.
function dap.setup()
local d = u.sreq "dap"