Compare commits
No commits in common. "3b83d4d9a2f8d40941cd9958ea0925af65223589" and "5db54742bdd1d4199e90a6de812c2b942d093235" have entirely different histories.
3b83d4d9a2
...
5db54742bd
@ -25,20 +25,18 @@ return {
|
|||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap-python",
|
|
||||||
ft = "python",
|
|
||||||
dependencies = {
|
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
},
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
dependencies = {
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-dap-python",
|
||||||
config = function()
|
config = function()
|
||||||
local dap_python = require("dap-python")
|
local dap_python = require("dap-python")
|
||||||
dap_python.test_runner = "pytest"
|
dap_python.test_runner = "pytest"
|
||||||
dap_python.setup(vim.fn.stdpath("data") .. "/mason/packages/debugpy/venv/bin/python3")
|
dap_python.setup(vim.fn.stdpath("data") .. "/mason/packages/debugpy/venv/bin/python3")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>d", desc = "> DAP" },
|
{ "<leader>d", desc = "> DAP" },
|
||||||
{
|
{
|
||||||
@ -138,7 +136,7 @@ return {
|
|||||||
|
|
||||||
--- Gets a path for a given program in the environment
|
--- Gets a path for a given program in the environment
|
||||||
---@param program string String of a program in the Mason packages
|
---@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 function get_program_path(program)
|
||||||
local program_path = vim.fn.stdpath("data") .. "/mason/packages/" .. program .. "/" .. program
|
local program_path = vim.fn.stdpath("data") .. "/mason/packages/" .. program .. "/" .. program
|
||||||
return program_path
|
return program_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user