-
-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Hi,
when debugging (in java with jdtls), the scopes view is truncated for long variables, even when setting the render -> {max_value_lines = nil} :
I confirmed by using dap.widgets, that it is not a property of the debugger, but of the ui itself, as output is not truncated with dap.widgets.
Pretty much using default config, just removed one pane from the layout, and set the max_value_lines:
return {
"rcarriga/nvim-dap-ui",
config = function()
require("dapui").setup({
icons = { expanded = "", collapsed = "", current_frame = "" },
mappings = {
-- Use a table to apply multiple mappings
expand = { "<CR>", "<2-LeftMouse>" },
open = "o",
remove = "d",
edit = "e",
repl = "r",
toggle = "t",
},
element_mappings = {},
expand_lines = vim.fn.has("nvim-0.7") == 1,
force_buffers = true,
layouts = {
{
-- You can change the order of elements in the sidebar
elements = {
-- Provide IDs as strings or tables with "id" and "size" keys
{
id = "scopes",
size = 0.2, -- Can be float or integer > 1
},
{ id = "breakpoints", size = 0.2 },
{ id = "stacks", size = 0.2 },
{ id = "watches", size = 0.2 },
{ id = "repl", size = 0.2 },
},
size = 40,
position = "left", -- Can be "left" or "right"
},
{
elements = {
"console",
},
size = 10,
position = "bottom", -- Can be "bottom" or "top"
},
},
floating = {
max_height = nil,
max_width = nil,
border = "single",
mappings = {
["close"] = { "q", "<Esc>" },
},
},
controls = {
enabled = vim.fn.exists("+winbar") == 1,
element = "repl",
icons = {
pause = "",
play = "",
step_into = "",
step_over = "",
step_out = "",
step_back = "",
run_last = "",
terminate = "",
disconnect = "",
},
},
render = {
max_type_length = nil, -- Can be integer or nil.
max_value_lines = nil, -- Can be integer or nil.
indent = 1,
},
})
end,
}
Metadata
Metadata
Assignees
Labels
No labels