Skip to content

Commit d86dd9c

Browse files
glmlmNgoranA
authored andcommitted
Set breakpoint icons and their highlight colors (nvim-lua#1194)
* feat: Set breakpoint icons and their highlight colors * docs: Delete reference URL (written in PR) feat: "Break" and "Stop" arguments of vim.api.nvim_set_hl are changed because they are too common nouns feat: Comment out changes regarding diagnostic symbols so that only those who want to change them can do so --------- Co-authored-by: name <email>
1 parent d9b473c commit d86dd9c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lua/kickstart/plugins/debug.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ return {
9191
},
9292
}
9393

94+
-- Change breakpoint icons
95+
-- vim.api.nvim_set_hl(0, 'DapBreak', { fg = '#e51400' })
96+
-- vim.api.nvim_set_hl(0, 'DapStop', { fg = '#ffcc00' })
97+
-- local breakpoint_icons = vim.g.have_nerd_font
98+
-- and { Breakpoint = '', BreakpointCondition = '', BreakpointRejected = '', LogPoint = '', Stopped = '' }
99+
-- or { Breakpoint = '●', BreakpointCondition = '⊜', BreakpointRejected = '⊘', LogPoint = '◆', Stopped = '⭔' }
100+
-- for type, icon in pairs(breakpoint_icons) do
101+
-- local tp = 'Dap' .. type
102+
-- local hl = (type == 'Stopped') and 'DapStop' or 'DapBreak'
103+
-- vim.fn.sign_define(tp, { text = icon, texthl = hl, numhl = hl })
104+
-- end
105+
94106
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
95107
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
96108
dap.listeners.before.event_exited['dapui_config'] = dapui.close

0 commit comments

Comments
 (0)