tmux; dap; dapui; debugging
This commit is contained in:
parent
985b6f94aa
commit
f89dbf8e7f
7 changed files with 198 additions and 8 deletions
89
lua/custom/plugins/dapui.lua
Normal file
89
lua/custom/plugins/dapui.lua
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
return {
|
||||
'rcarriga/nvim-dap-ui',
|
||||
dependencies = {
|
||||
'mfussenegger/nvim-dap',
|
||||
},
|
||||
config = function()
|
||||
require("dapui").setup({
|
||||
controls = {
|
||||
element = "repl",
|
||||
enabled = true,
|
||||
icons = {
|
||||
disconnect = "",
|
||||
pause = "",
|
||||
play = "",
|
||||
run_last = "",
|
||||
step_back = "",
|
||||
step_into = "",
|
||||
step_out = "",
|
||||
step_over = "",
|
||||
terminate = ""
|
||||
}
|
||||
},
|
||||
element_mappings = {},
|
||||
expand_lines = true,
|
||||
floating = {
|
||||
border = "single",
|
||||
mappings = {
|
||||
close = { "q", "<Esc>" }
|
||||
}
|
||||
},
|
||||
force_buffers = true,
|
||||
icons = {
|
||||
collapsed = "",
|
||||
current_frame = "",
|
||||
expanded = ""
|
||||
},
|
||||
layouts = {
|
||||
{
|
||||
elements = {
|
||||
{
|
||||
id = "console",
|
||||
size = 0.5
|
||||
},
|
||||
},
|
||||
position = "bottom",
|
||||
size = 10
|
||||
},
|
||||
{
|
||||
elements = {
|
||||
{
|
||||
id = "repl",
|
||||
size = 0.2
|
||||
},
|
||||
{
|
||||
id = "scopes",
|
||||
size = 0.2
|
||||
},
|
||||
{
|
||||
id = "breakpoints",
|
||||
size = 0.2
|
||||
},
|
||||
{
|
||||
id = "stacks",
|
||||
size = 0.2
|
||||
},
|
||||
{
|
||||
id = "watches",
|
||||
size = 0.2
|
||||
},
|
||||
},
|
||||
position = "right",
|
||||
size = 40
|
||||
},
|
||||
},
|
||||
mappings = {
|
||||
edit = "e",
|
||||
expand = { "<CR>", "<2-LeftMouse>" },
|
||||
open = "o",
|
||||
remove = "d",
|
||||
repl = "r",
|
||||
toggle = "t"
|
||||
},
|
||||
render = {
|
||||
indent = 1,
|
||||
max_value_lines = 100
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue