Compare commits

..

No commits in common. "3b83d4d9a2f8d40941cd9958ea0925af65223589" and "5db54742bdd1d4199e90a6de812c2b942d093235" have entirely different histories.

View File

@ -24,21 +24,19 @@ return {
event = { "BufReadPre", "BufNewFile" },
config = true,
},
{
"mfussenegger/nvim-dap-python",
ft = "python",
dependencies = {
"mfussenegger/nvim-dap",
},
config = function()
local dap_python = require("dap-python")
dap_python.test_runner = "pytest"
dap_python.setup(vim.fn.stdpath("data") .. "/mason/packages/debugpy/venv/bin/python3")
end,
},
{
"mfussenegger/nvim-dap",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
{
"mfussenegger/nvim-dap-python",
config = function()
local dap_python = require("dap-python")
dap_python.test_runner = "pytest"
dap_python.setup(vim.fn.stdpath("data") .. "/mason/packages/debugpy/venv/bin/python3")
end,
},
},
keys = {
{ "<leader>d", desc = "> DAP" },
{
@ -138,7 +136,7 @@ return {
--- Gets a path for a given program in the environment
---@param program string String of a program in the Mason packages
---@return string Full path to the program if found, or nil if not
---@return Path Full path to the program if found, or nil if not
local function get_program_path(program)
local program_path = vim.fn.stdpath("data") .. "/mason/packages/" .. program .. "/" .. program
return program_path