25 lines
536 B
Lua
25 lines
536 B
Lua
--[[--
|
|
File : conf.d/lvim/lua/user/dap.lua
|
|
Author : Jeff Lance <email@jefflance.me>
|
|
Date : 28.12.2023 21:34:48
|
|
Last Modified Date: 06.01.2024 18:53:52
|
|
Last Modified By : Jeff Lance <email@jefflance.me>
|
|
--]]--
|
|
|
|
|
|
|
|
-- Setup debug adapter
|
|
--
|
|
|
|
local M = {}
|
|
|
|
M.setup = function()
|
|
lvim.builtin.dap.active = true
|
|
local mason_path = vim.fn.glob(vim.fn.stdpath "data" .. "/mason/")
|
|
pcall(function()
|
|
require("dap-python").setup(mason_path .. "packages/debugpy/venv/bin/python")
|
|
end)
|
|
end
|
|
|
|
return M
|