From 60407d5725924008dd5c66165ecd8388b744be6d Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 7 May 2023 21:38:23 +0200 Subject: Changed layout of elements for dap-ui --- lua/plugins/dap.lua | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'lua') diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index 4414cef..52b8714 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -289,16 +289,21 @@ dapui.setup({ layouts = { { elements = { - { id = "scopes", size = 0.5 }, - { id = "watches", size = 0.5 }, + -- Elements can be strings or table with id and size keys. + { id = "scopes", size = 0.4 }, + "breakpoints", + "stacks", + "watches", }, - size = 40, + size = 50, -- 40 columns position = "left", }, { - elements = { "console", "repl" }, + elements = { + "console", + }, + size = 0.3, position = "bottom", - size = 15, }, }, render = { @@ -318,15 +323,16 @@ dapui.setup({ collapsed = "", current_frame = "", }, + { "theHamsta/nvim-dap-virtual-text", config = true }, }) -- signs local sign = vim.fn.sign_define sign("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = "" }) +sign("DapBreakpointCondition", { text = "◆", texthl = "DapBreakpointCondition", linehl = "", numhl = "" }) +sign("DapBreakpointRejected", { text = 'R', texthl = 'DiagnosticError', numhl = 'DiagnosticError' }) +sign("DapLogPoint", { text = "L", texthl = "DapLogPoint", linehl = "", numhl = "" }) sign('DapStopped', { text = '', texthl = 'DiagnosticSignHint', numbhl = '', linehl = '' }) -sign("DapBreakpointRejected", { text = '!>', texthl = 'DiagnosticError', numhl = 'DiagnosticError' }) -sign("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = "" }) -sign("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = "" }) --sign('DapBreakpoint', { text = '', texthl = 'DiagnosticSignError', numbhl = '', linehl = '' }) --sign("DapLogPoint", { text = '.>', texthl = 'DiagnosticInfo', numhl = 'DiagnosticInfo' }) -- cgit v1.2.3