feat(dap): fist naive implementaion

This commit is contained in:
Smirnov Oleksandr 2022-09-22 17:28:04 +03:00
parent 80d0659425
commit 413efcc9f2
3 changed files with 118 additions and 0 deletions

12
lua/gopher/dap/init.lua Normal file
View file

@ -0,0 +1,12 @@
local cfg = require "gopher.dap.config"
local u = require "gopher._utils"
local M = {}
---setup nvim-dap for golang using
function M.setup()
local dap = u.sreq "dap"
dap.adapters.go = cfg.adapter
dap.configurations.go = cfg.configuration
end
return M