feat: add icons for sidebar

This commit is contained in:
2026-08-29 17:26:30 +02:00
parent a9c376c8f8
commit a1acbdf63c
+22 -1
View File
@@ -51,7 +51,16 @@ Config.autocmd('TermOpen', '*', function() vim.cmd('startinsert') end, 'Start in
-- Diagnostics ================================================================= -- Diagnostics =================================================================
Config.later(function() Config.later(function()
vim.diagnostic.config({ 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' } }, underline = { severity = { min = 'HINT', max = 'ERROR' } },
virtual_lines = false, virtual_lines = false,
virtual_text = { virtual_text = {
@@ -60,4 +69,16 @@ Config.later(function()
}, },
update_in_insert = false, 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) end)