48 lines
1.3 KiB
Lua
48 lines
1.3 KiB
Lua
-- https://github.com/rcarriga/nvim-dap-ui
|
|
|
|
local function setup()
|
|
require("dapui").setup({
|
|
icons = { expanded = "▾", collapsed = "▸", },
|
|
mappings = {
|
|
-- Use a table to apply multiple mappings
|
|
expand = { "<CR>", "<2-LeftMouse>", },
|
|
open = "o",
|
|
remove = "d",
|
|
edit = "e",
|
|
repl = "r",
|
|
toggle = "t",
|
|
},
|
|
layouts = {
|
|
{
|
|
elements = {
|
|
"scopes",
|
|
"breakpoints",
|
|
"stacks",
|
|
"watches",
|
|
},
|
|
size = 40,
|
|
position = "left",
|
|
},
|
|
{
|
|
elements = {
|
|
"repl",
|
|
"console",
|
|
},
|
|
size = 10,
|
|
position = "bottom",
|
|
},
|
|
},
|
|
floating = {
|
|
max_height = nil, -- These can be integers or a float between 0 and 1.
|
|
max_width = nil, -- Floats will be treated as percentage of your screen.
|
|
border = "single", -- Border style. Can be "single", "double" or "rounded"
|
|
mappings = {
|
|
close = { "q", "<Esc>", },
|
|
},
|
|
},
|
|
windows = { indent = 1, },
|
|
})
|
|
end
|
|
|
|
return setup
|