feat: add python-dap

This commit is contained in:
2026-04-16 15:06:53 +03:00
parent bcad05d8ec
commit 1202857417
2 changed files with 35 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
{
plugins.dap = {
enable = true;
luaConfig.post = ''
local dap = require('dap')
dap.configurations.python = {
{
type = 'python',
request = 'attach',
name = 'Attach Remote (prompt for path)',
connect = {
host = '127.0.0.1',
port = 5678,
},
pathMappings = function()
local remoteRoot = vim.fn.input('Remote root path: ', '/app')
return {
{
localRoot = vim.fn.getcwd(),
remoteRoot = remoteRoot,
},
}
end,
},
}
'';
};
plugins.dap-ui.enable = true;
plugins.dap-python.enable = true;
keymaps = [ ];
}