summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/dap.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/dap.lua')
-rwxr-xr-x.config/nvim/lua/plugins/dap.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/dap.lua b/.config/nvim/lua/plugins/dap.lua
new file mode 100755
index 0000000..b927ca6
--- /dev/null
+++ b/.config/nvim/lua/plugins/dap.lua
@@ -0,0 +1,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.