Changing the layout for the DAP UI and adding the option for conditional breakpoints.

This commit is contained in:
Finch 2024-03-11 03:55:10 -05:00
parent 43a742b9cf
commit feb0ae8446

View File

@ -5,7 +5,6 @@ return {
'rcarriga/nvim-dap-ui', 'rcarriga/nvim-dap-ui',
config = function() config = function()
require('dapui').setup({ require('dapui').setup({
-- icons
mappings = { mappings = {
open = 'o', open = 'o',
remove = 'd', remove = 'd',
@ -17,15 +16,16 @@ return {
{ {
elements = { elements = {
'scopes', 'scopes',
'watches', 'breakpoints',
'stacks',
}, },
size = 0.33, size = 0.33,
position = 'right', position = 'right',
}, },
{ {
elements = { elements = {
'terminal', 'console',
'breakpoints', 'watches',
}, },
size = 0.2, size = 0.2,
position = 'bottom', position = 'bottom',
@ -66,7 +66,8 @@ return {
dapui.close() dapui.close()
end end
vim.fn.sign_define('DapBreakpoint', { text = '🐞', texthl = '', lineh = '', numhl = '' }) vim.fn.sign_define('DapBreakpoint', { text = '', texthl = '', lineh = '', numhl = '' })
vim.fn.sign_define('DapBreakpointCondition', { text = '🝌', texthl = '', lineh = '', numhl = '' })
vim.fn.sign_define('DapStopped', { text = '' }) vim.fn.sign_define('DapStopped', { text = '' })
end, end,
keys = { keys = {