all repos

init.lua @ 6a237b9

my nvim config

init.lua/lua/plugins/dap/init.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
38
39
40
41
42
local map = require("core.utils").smap
return {
  {
    "mfussenegger/nvim-dap",
    keys = {
      { "<leader>db", map("dap", "toggle_breakpoint") },
      { "<leader>dc", map("dap", "continue") },
      { "<leader>di", map("dap", "step_into") },
      { "<leader>do", map("dap", "step_over") },
      { "<leader>dO", map("dap", "step_out") },
      { "<leader>dr", map("dap", "repl.toggle") },
      { "<leader>dl", map("dap", "run_to_cursor") },
      { "<leader>du", map("dap", "disconnect") },
      { "<leader>dt", map("dap", "terminate") },
    },
    dependencies = {
      "rcarriga/nvim-dap-ui",
      { "theHamsta/nvim-dap-virtual-text", config = true },
    },
    config = function()
      require "plugins.dap.ui"
      vim.fn.sign_define("DapBreakpoint", {
        text = "",
        texthl = "DiagnosticSignError",
        linehl = "",
        numhl = "",
      })
    end,
  },
  {
    "andrewferrier/debugprint.nvim",
    config = true,
    keys = {
      "g?",
      {
        "<leader>P",
        map("debugprint", "debugprint", "{ variable = true }"),
        expr = true,
      },
    },
  },
}