Put all files in a dir.
This commit is contained in:
24
home/dot_config/lvim/lua/user/dap.lua
Normal file
24
home/dot_config/lvim/lua/user/dap.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
--[[--
|
||||
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
|
||||
Reference in New Issue
Block a user