Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions lua/astrocommunity/pack/python/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,8 @@ return {
dependencies = "mfussenegger/nvim-dap",
ft = "python", -- NOTE: ft: lazy-load on filetype
config = function(_, opts)
local path = vim.fn.exepath "python"
local debugpy = require("mason-registry").get_package "debugpy"
if debugpy:is_installed() then
path = vim.fn.expand "$MASON/packages/debugpy"
if vim.fn.has "win32" == 1 then
path = path .. "/venv/Scripts/python"
else
path = path .. "/venv/bin/python"
end
end
local path = vim.fn.exepath "debugpy-adapter"
if path == "" then path = vim.fn.exepath "python" end
require("dap-python").setup(path, opts)
end,
},
Expand Down