gabrielgio.lua @ dfe730b889915e33af1d3da810b13aa9d1d4253c

 1local dap = require("dap")
 2local key = require("gabrielgio.key")
 3
 4key.nnoremap("<F5>", ":lua require'dap'.continue()<CR>")
 5key.nnoremap("<F10>", ":lua require'dap'.step_over()<CR>")
 6key.nnoremap("<F11>", ":lua require'dap'.step_into()<CR>")
 7key.nnoremap("<F12>", ":lua require'dap'.step_out()<CR>")
 8key.nnoremap("<leader>b", ":lua require'dap'.toggle_breakpoint()<CR>")
 9key.nnoremap("<leader>B", ":lua require'dap'.set_breakpoint(vim.fn.input('Condition: '))<CR>")
10key.nnoremap("<leader>dr", ":lua require'dap'.repl.open()<CR>")
11
12dap.adapters.delve = {
13    type = "server",
14    host = "127.0.0.1",
15    port = 2345,
16  }
17
18dap.configurations.go = {
19    {
20        type = "delve",
21        name = "remote",
22        mode = "remote",
23        request = "attach",
24        connect = {
25            host = "127.0.0.1",
26            port = "2345",
27        },
28    },
29}