Use debugpy-adapter executable for nvim-dap-python

This commit is contained in:
Kian Kasad 2025-05-15 00:56:51 -07:00 committed by GitHub
parent 25abbf546d
commit 5540ee20e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,11 +103,7 @@ return {
{ "<leader>dPc", function() require('dap-python').test_class() end, desc = "Debug Class", ft = "python" },
},
config = function()
if vim.fn.has("win32") == 1 then
require("dap-python").setup(LazyVim.get_pkg_path("debugpy", "/venv/Scripts/pythonw.exe"))
else
require("dap-python").setup(LazyVim.get_pkg_path("debugpy", "/venv/bin/python"))
end
require("dap-python").setup("debugpy-adapter")
end,
},
},