summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/dap.lua
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-08 12:40:19 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-08 12:40:19 +0200
commitce6be946d024aa55a15d576388d05f90be671cf2 (patch)
treefa1053446a3fb06daee8438c1ff664cb36c0abcb /.config/nvim/lua/plugins/dap.lua
parent703ed1915c69911a95cab6e1fb6524629c976800 (diff)
downloaddots-ce6be946d024aa55a15d576388d05f90be671cf2.tar.gz
Sat Oct 8 12:40:19 PM CEST 2022
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.