From a1acbdf63ce78cf0065aca897214b2d3076ae17a Mon Sep 17 00:00:00 2001 From: Job79 Date: Sat, 29 Aug 2026 17:26:30 +0200 Subject: [PATCH] feat: add icons for sidebar --- plugin/10_options.lua | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/plugin/10_options.lua b/plugin/10_options.lua index fcba6a2..6f673bc 100644 --- a/plugin/10_options.lua +++ b/plugin/10_options.lua @@ -51,7 +51,16 @@ Config.autocmd('TermOpen', '*', function() vim.cmd('startinsert') end, 'Start in -- Diagnostics ================================================================= Config.later(function() vim.diagnostic.config({ - signs = { priority = 9999, severity = { min = 'WARN', max = 'ERROR' } }, + signs = { + priority = 9999, + severity = { min = 'WARN', max = 'ERROR' }, + text = { + [vim.diagnostic.severity.ERROR] = ' ', + [vim.diagnostic.severity.WARN] = ' ', + [vim.diagnostic.severity.INFO] = ' ', + [vim.diagnostic.severity.HINT] = ' ', + }, + }, underline = { severity = { min = 'HINT', max = 'ERROR' } }, virtual_lines = false, virtual_text = { @@ -60,4 +69,16 @@ Config.later(function() }, update_in_insert = false, }) + + local dap_signs = { + DapBreakpoint = { text = ' ', texthl = 'DapBreakpoint', linehl = '', numhl = '' }, + DapBreakpointCondition = { text = ' ', texthl = 'DapBreakpointCondition', linehl = '', numhl = '' }, + DapLogPoint = { text = ' ', texthl = 'DapLogPoint', linehl = '', numhl = '' }, + DapStopped = { text = ' ', texthl = 'DapStopped', linehl = 'DapStoppedLine', numhl = '' }, + DapBreakpointRejected = { text = ' ', texthl = 'DapBreakpointRejected', linehl = '', numhl = '' }, + } + + for name, sign in pairs(dap_signs) do + vim.fn.sign_define(name, sign) + end end)