mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-27 19:28:52 +02:00
update debug
This commit is contained in:
parent
f55135f114
commit
0e0f7d17cf
4 changed files with 38 additions and 1 deletions
|
@ -362,4 +362,22 @@ return {
|
|||
ft = { "markdown" },
|
||||
cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
|
||||
},
|
||||
-- debuging
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
},
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
dependencies = "mfussenegger/nvim-dap",
|
||||
init = function()
|
||||
require("user.dapui")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"jayp0521/mason-nvim-dap.nvim",
|
||||
dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
|
||||
init = function()
|
||||
require("user.mason_dap")
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
13
lua/user/dapui.lua
Normal file
13
lua/user/dapui.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
local dap, dapui = require("dap"), require("dapui")
|
||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated["dapui_config"] = function()
|
||||
dapui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited["dapui_config"] = function()
|
||||
dapui.close()
|
||||
end
|
||||
dapui.setup()
|
||||
vim.fn.sign_define("DapBreakpoint", { text = "🟥", texthl = "", linehl = "", numhl = "" })
|
||||
vim.fn.sign_define("DapStopped", { text = "▶️", texthl = "", linehl = "", numhl = "" })
|
3
lua/user/mason_dap.lua
Normal file
3
lua/user/mason_dap.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
local mason_nvim_dap = require("mason-nvim-dap")
|
||||
mason_nvim_dap.setup({ automatic_setup = true })
|
||||
mason_nvim_dap.setup_handlers({})
|
Loading…
Add table
Add a link
Reference in a new issue