summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/dap.lua
blob: b927ca6100c841ec2f69b814d60626f4d7ec2337 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local dap = require('dap')
local python_venv = require('utils').get_python_venv()

dap.adapters.python = {
  type = 'executable';
  command = 'python';
  args = { '-m', 'debugpy.adapter' };
}

dap.configurations.python = {
  {
    type = 'python';
    request = 'launch';
    name = "Launch file";

    program = "${file}";
    pythonPath = python_venv .. '/bin/python';
  },
}

-- require("dapui").setup{}
remember that computers suck.