Files
nix-los/config/nvim/lua/eliaskohout-old/after/plugin/dap-python.lua

31 lines
559 B
Lua
Raw Normal View History

local dap = require('dap')
local dap_python = require('dap-python')
dap_python.setup('uv') -- or wherever your debugpy-enabled python is
dap.adapters.python = {
type = 'server',
host = '127.0.0.1',
port = 5678,
}
dap.configurations.python = {
{
type = 'python',
request = 'attach',
name = "Attach to remote",
connect = {
host = "127.0.0.1",
port = 5678,
},
mode = "remote",
pathMappings = {
{
localRoot = vim.fn.getcwd(),
remoteRoot = "/home/mmc-user/fair-psgg"
}
},
},
}