summaryrefslogtreecommitdiff
path: root/lua/config/plugins/debug.lua
blob: 0f6378ba10afda05ddc4b2bea9b196d890e022fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
return {
	{
		"nvim-dap",
		event = "DeferredUIEnter",
		load = function(name)
			vim.cmd.packadd(name)
			vim.cmd.packadd("nvim-dap-ui")
			vim.cmd.packadd("nvim-dap-virtual-text")
		end,
		after = function(_)
			-- require("dap").setup()
			require("dapui").setup()
			require("nvim-dap-virtual-text").setup({})

			local dap = require("dap")
			dap.adapters.lldb = {
				type = "executable",
				command = "lldb-dap",
				name = "lldb",
			}
		end,
	},
}