fix(dap): get the correct debugpy pkg path on windows

This commit is contained in:
dbger 2024-06-18 14:13:40 +08:00
parent a621743225
commit 7770fc76fa

View file

@ -92,7 +92,11 @@ 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/python.exe"))
else
require("dap-python").setup(LazyVim.get_pkg_path("debugpy", "/venv/bin/python"))
end
end,
},
},