summaryrefslogtreecommitdiff
path: root/lua/lvim/core/dap.lua
diff options
context:
space:
mode:
authoropalmay <[email protected]>2023-01-13 15:46:41 +0200
committerGitHub <[email protected]>2023-01-13 15:46:41 +0200
commit28acebe7dddb6d9abc7a5fdeb8e3282c63ffa808 (patch)
tree0668b2826d43f0630093e4f185290f7ab3361ff3 /lua/lvim/core/dap.lua
parent4455bd2add5f3c53593cefb84fe13731adc54376 (diff)
feat(dap-ui): update setup table (#3724)
* feat(dap-ui): update setup table * chore: lint
Diffstat (limited to 'lua/lvim/core/dap.lua')
-rw-r--r--lua/lvim/core/dap.lua24
1 files changed, 23 insertions, 1 deletions
diff --git a/lua/lvim/core/dap.lua b/lua/lvim/core/dap.lua
index 3b5c443f..d8de10d5 100644
--- a/lua/lvim/core/dap.lua
+++ b/lua/lvim/core/dap.lua
@@ -31,7 +31,6 @@ M.config = function()
threshold = vim.log.levels.INFO,
},
config = {
- expand_lines = true,
icons = { expanded = "", collapsed = "", circular = "" },
mappings = {
-- Use a table to apply multiple mappings
@@ -42,6 +41,9 @@ M.config = function()
repl = "r",
toggle = "t",
},
+ -- Use this to override mappings for specific elements
+ element_mappings = {},
+ expand_lines = true,
layouts = {
{
elements = {
@@ -62,6 +64,21 @@ M.config = function()
position = "bottom",
},
},
+ controls = {
+ enabled = true,
+ -- Display controls in this element
+ element = "repl",
+ icons = {
+ pause = "",
+ play = "",
+ step_into = "",
+ step_over = "",
+ step_out = "",
+ step_back = "",
+ run_last = "",
+ terminate = "",
+ },
+ },
floating = {
max_height = 0.9,
max_width = 0.5, -- Floats will be treated as percentage of your screen.
@@ -70,6 +87,11 @@ M.config = function()
close = { "q", "<Esc>" },
},
},
+ windows = { indent = 1 },
+ render = {
+ max_type_length = nil, -- Can be integer or nil.
+ max_value_lines = 100, -- Can be integer or nil.
+ },
},
},
}