all repos

init.lua @ 15857f3

my nvim config

init.lua/lua/configs/dap.lua(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
local dap = require "dap"
local dapui = require "dapui"

require("nvim-dap-virtual-text").setup {}
require("dap-go").setup()

vim.fn.sign_define("DapBreakpoint", {
  text = "",
  texthl = "DiagnosticSignError",
  linehl = "",
  numhl = "",
})

dapui.setup {
  layouts = {
    {
      elements = {
        { id = "scopes", size = 0.25 },
        { id = "breakpoints", size = 0.25 },
      },
      size = 40,
      position = "left",
    },
  },
}

dap.listeners.after.event_initialized["dapui_config"] = function()
  dapui.open {}
end

dap.listeners.before.event_terminated["dapui_config"] = function()
  dapui.close {}
end

dap.listeners.before.event_exited["dapui_config"] = function()
  dapui.close {}
end