Merge 5fb80672f338bd8f95e894982d4d3f1ca278c962 into 4120893b8a1f31a0957f2f891f7fbef73ddfb9b1

This commit is contained in:
gloomylemon 2024-10-17 14:49:06 +00:00 committed by GitHub
commit 6f45152e7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,6 +89,19 @@ return {
},
}
-- Change breakpoint icons
-- For more information, see https://github.com/mfussenegger/nvim-dap/discussions/355
vim.api.nvim_set_hl(0, 'DapBreak', { fg = '#e51400' })
vim.api.nvim_set_hl(0, 'DapStop', { fg = '#ffcc00' })
local breakpoint_icons = vim.g.have_nerd_font
and { Breakpoint = '', BreakpointCondition = '', BreakpointRejected = '', LogPoint = '', Stopped = '' }
or { Breakpoint = '', BreakpointCondition = '', BreakpointRejected = '', LogPoint = '', Stopped = '' }
for type, icon in pairs(breakpoint_icons) do
local tp = 'Dap' .. type
local hl = (type == 'Stopped') and 'DapStop' or 'DapBreak'
vim.fn.sign_define(tp, { text = icon, texthl = hl, numhl = hl })
end
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
dap.listeners.before.event_exited['dapui_config'] = dapui.close