add deprecation message
This commit is contained in:
parent
fbf6441f3d
commit
d9393a4f4d
2 changed files with 11 additions and 2 deletions
|
|
@ -220,6 +220,8 @@ require("gopher").setup {
|
|||
<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
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
---@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 @@ dap.configuration = {
|
|||
|
||||
-- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue