refactor: simplify
This commit is contained in:
+12
-5
@@ -83,12 +83,19 @@ function Config.setup_dap()
|
||||
Config.setup_dap = nil
|
||||
vim.pack.add({ "https://github.com/mfussenegger/nvim-dap" })
|
||||
|
||||
local dap = require("dap")
|
||||
dap.adapters.go = {
|
||||
type = "server",
|
||||
host = "127.0.0.1",
|
||||
port = "${port}",
|
||||
local dap_signs = {
|
||||
DapBreakpoint = { text = '', texthl = 'DapBreakpoint' },
|
||||
DapBreakpointCondition = { text = '', texthl = 'DapBreakpointCondition' },
|
||||
DapLogPoint = { text = '', texthl = 'DapLogPoint' },
|
||||
DapStopped = { text = '', texthl = 'DapStopped', linehl = 'DapStoppedLine' },
|
||||
DapBreakpointRejected = { text = '', texthl = 'DapBreakpointRejected' },
|
||||
}
|
||||
for name, sign in pairs(dap_signs) do
|
||||
vim.fn.sign_define(name, sign)
|
||||
end
|
||||
|
||||
local dap = require("dap")
|
||||
dap.adapters.go = { type = "server", host = "127.0.0.1", port = "${port}" }
|
||||
end
|
||||
|
||||
-- Kulala ======================================================================
|
||||
|
||||
Reference in New Issue
Block a user