diff --git a/lua/astrocommunity/pack/python/init.lua b/lua/astrocommunity/pack/python/init.lua index b194d93e8..767147413 100644 --- a/lua/astrocommunity/pack/python/init.lua +++ b/lua/astrocommunity/pack/python/init.lua @@ -74,7 +74,12 @@ return { dependencies = "mfussenegger/nvim-dap", ft = "python", -- NOTE: ft: lazy-load on filetype config = function(_, opts) - local path = require("mason-registry").get_package("debugpy"):get_install_path() .. "/venv/bin/python" + local path = require("mason-registry").get_package("debugpy"):get_install_path() + if vim.fn.has "win32" == 1 then + path = path .. "/venv/Scripts/python" + else + path = path .. "/venv/bin/python" + end require("dap-python").setup(path, opts) end, },