refactor: simplify

This commit is contained in:
2026-09-03 19:50:47 +02:00
parent 11edf1e7d1
commit 29d7fd98c8
5 changed files with 45 additions and 69 deletions
+12 -5
View File
@@ -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 ======================================================================