+2
README.md
+2
README.md
+9
-2
lua/gopher/dap.lua
+9
-2
lua/gopher/dap.lua
···
3
3
---@text This module sets up `nvim-dap` for Go.
4
4
---@usage just call `require("gopher.dap").setup()`, and you're good to go.
5
5
6
-
local u = require "gopher._utils"
7
6
local c = require "gopher.config"
8
7
local dap = {}
9
8
···
113
112
114
113
-- sets ups nvim-dap for Go in one function call.
115
114
function dap.setup()
116
-
local d = u.sreq "dap"
115
+
vim.deprecate(
116
+
"gopher.dap",
117
+
"you might consider setting up `nvim-dap` manually, or using another plugin(https://github.com/leoluz/nvim-dap-go)",
118
+
"v0.1.6",
119
+
"gopher"
120
+
)
121
+
122
+
local ok, d = pcall(require, "dap")
123
+
assert(ok, "gopher.nvim dependency error: dap not installed")
117
124
118
125
d.adapters.go = dap.adapter
119
126
d.configurations.go = dap.configuration