Fix formatting dap.lua
This commit is contained in:
@@ -10,7 +10,6 @@ return {
|
|||||||
"jay-babu/mason-nvim-dap.nvim", -- Dependency for managing DAP adapters with Mason
|
"jay-babu/mason-nvim-dap.nvim", -- Dependency for managing DAP adapters with Mason
|
||||||
"mfussenegger/nvim-dap-python", -- Dependency for Python debugging
|
"mfussenegger/nvim-dap-python", -- Dependency for Python debugging
|
||||||
},
|
},
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
local dapui = require("dapui")
|
local dapui = require("dapui")
|
||||||
@@ -23,7 +22,6 @@ return {
|
|||||||
"codelldb", -- C/C++ Debugger Adapter
|
"codelldb", -- C/C++ Debugger Adapter
|
||||||
"debugpy", -- Python Debugger Adapter
|
"debugpy", -- Python Debugger Adapter
|
||||||
},
|
},
|
||||||
|
|
||||||
handlers = {},
|
handlers = {},
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -72,7 +70,6 @@ return {
|
|||||||
program = function()
|
program = function()
|
||||||
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
|
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
|
||||||
end,
|
end,
|
||||||
|
|
||||||
cwd = "${workspaceFolder}",
|
cwd = "${workspaceFolder}",
|
||||||
stopOnEntry = false,
|
stopOnEntry = false,
|
||||||
},
|
},
|
||||||
@@ -86,7 +83,6 @@ return {
|
|||||||
vim.keymap.set("n", "<space>?", function()
|
vim.keymap.set("n", "<space>?", function()
|
||||||
dapui.eval(nil, { enter = true })
|
dapui.eval(nil, { enter = true })
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.keymap.set("n", "<F9>", dap.continue)
|
vim.keymap.set("n", "<F9>", dap.continue)
|
||||||
vim.keymap.set("n", "<F7>", dap.step_into)
|
vim.keymap.set("n", "<F7>", dap.step_into)
|
||||||
vim.keymap.set("n", "<F8>", dap.step_over)
|
vim.keymap.set("n", "<F8>", dap.step_over)
|
||||||
@@ -98,15 +94,12 @@ return {
|
|||||||
dap.listeners.before.attach.dapui_config = function()
|
dap.listeners.before.attach.dapui_config = function()
|
||||||
dapui.open()
|
dapui.open()
|
||||||
end
|
end
|
||||||
|
|
||||||
dap.listeners.before.launch.dapui_config = function()
|
dap.listeners.before.launch.dapui_config = function()
|
||||||
dapui.open()
|
dapui.open()
|
||||||
end
|
end
|
||||||
|
|
||||||
dap.listeners.before.event_terminated.dapui_config = function()
|
dap.listeners.before.event_terminated.dapui_config = function()
|
||||||
dapui.close()
|
dapui.close()
|
||||||
end
|
end
|
||||||
|
|
||||||
dap.listeners.before.event_exited.dapui_config = function()
|
dap.listeners.before.event_exited.dapui_config = function()
|
||||||
dapui.close()
|
dapui.close()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user