Compare commits
2 Commits
5db54742bd
...
3b83d4d9a2
Author | SHA1 | Date | |
---|---|---|---|
3b83d4d9a2 | |||
e86c88c54e |
@ -24,19 +24,21 @@ return {
|
|||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
config = true,
|
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",
|
"mfussenegger/nvim-dap",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
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 = {
|
keys = {
|
||||||
{ "<leader>d", desc = "> DAP" },
|
{ "<leader>d", desc = "> DAP" },
|
||||||
{
|
{
|
||||||
@ -136,7 +138,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 Path Full path to the program if found, or nil if not
|
---@return string 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