diff options
| author | gloomy-lemon-debatable <91877885+gloomy-lemon-debatable@users.noreply.github.com> | 2024-10-30 17:01:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 13:01:42 -0400 |
| commit | f87d83db21ae2b46fb4135838273da77fd59815b (patch) | |
| tree | f841a454380ceaa919d3b008ca2982b313ef8213 | |
| parent | 468499ca94b40de9d6eb6af61f983e8f18b5b4bf (diff) | |
| download | dots-f87d83db21ae2b46fb4135838273da77fd59815b.tar.gz | |
Set breakpoint icons and their highlight colors (#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>
| -rw-r--r-- | nvim/lua/kickstart/plugins/debug.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nvim/lua/kickstart/plugins/debug.lua b/nvim/lua/kickstart/plugins/debug.lua index 196f2c6..2226d96 100644 --- a/nvim/lua/kickstart/plugins/debug.lua +++ b/nvim/lua/kickstart/plugins/debug.lua @@ -89,6 +89,18 @@ return { }, } + -- Change breakpoint icons + -- 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 |