2 files changed,
11 insertions(+),
2 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed by:
GitHub
noreply@github.com
Committed at:
2024-06-15 12:37:15 +0300
Parent:
fbf6441
jump to
| M | README.md |
| M | lua/gopher/dap.lua |
M
README.md
@@ -220,6 +220,8 @@ <summary>
<b>Setup <a href="https://github.com/mfussenegger/nvim-dap">nvim-dap</a> for go in one line</b> </summary> + THIS FEATURE WILL BE REMOVED IN `0.1.6` + note [nvim-dap](https://github.com/mfussenegger/nvim-dap) has to be installed ```lua
M
lua/gopher/dap.lua
@@ -3,7 +3,6 @@ ---@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 = {}@@ -113,7 +112,15 @@ }
-- sets ups nvim-dap for Go in one function call. function dap.setup() - local d = u.sreq "dap" + vim.deprecate( + "gopher.dap", + "you might consider setting up `nvim-dap` manually, or using another plugin(https://github.com/leoluz/nvim-dap-go)", + "v0.1.6", + "gopher" + ) + + local ok, d = pcall(require, "dap") + assert(ok, "gopher.nvim dependency error: dap not installed") d.adapters.go = dap.adapter d.configurations.go = dap.configuration